<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/hw/core/hotplug.c, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/hw/core/hotplug.c?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/hw/core/hotplug.c?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2018-10-19T11:44:12+00:00</updated>
<entry>
<title>call HotplugHandler-&gt;plug() as the last step in device realization</title>
<updated>2018-10-19T11:44:12+00:00</updated>
<author>
<name>Igor Mammedov</name>
</author>
<published>2018-10-16T13:33:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8b5e6caf01f778a257721cae499392e8f1d55ddb'/>
<id>urn:sha1:8b5e6caf01f778a257721cae499392e8f1d55ddb</id>
<content type='text'>
When [2] was fixed it was agreed that adding and calling post_plug()
callback after device_reset() was low risk approach to hotfix issue
right before release. So it was merged instead of moving already
existing plug() callback after device_reset() is called which would
be more risky and require all plug() callbacks audit.

Looking at the current plug() callbacks, it doesn't seem that moving
plug() callback after device_reset() is breaking anything, so here
goes agreed upon [3] proper fix which essentially reverts [1][2]
and moves plug() callback after device_reset().
This way devices always comes to plug() stage, after it's been fully
initialized (including being reset), which fixes race condition [2]
without need for an extra post_plug() callback.

 1. (25e897881 "qdev: add HotplugHandler-&gt;post_plug() callback")
 2. (8449bcf94 "virtio-scsi: fix hotplug -&gt;reset() vs event race")
 3. https://www.mail-archive.com/qemu-devel@nongnu.org/msg549915.html

Signed-off-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Message-Id: &lt;1539696820-273275-1-git-send-email-imammedo@redhat.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Tested-by: Pierre Morel&lt;pmorel@linux.ibm.com&gt;
Acked-by: Pierre Morel&lt;pmorel@linux.ibm.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>qdev: add HotplugHandler-&gt;post_plug() callback</title>
<updated>2018-07-16T14:58:16+00:00</updated>
<author>
<name>Stefan Hajnoczi</name>
</author>
<published>2018-07-16T08:37:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=25e8978817a54745c44d956d8303e6be6f2c4047'/>
<id>urn:sha1:25e8978817a54745c44d956d8303e6be6f2c4047</id>
<content type='text'>
The -&gt;pre_plug() callback is invoked before the device is realized.  The
-&gt;plug() callback is invoked when the device is being realized but
before it is reset.

This patch adds a -&gt;post_plug() callback which is invoked after the
device has been reset.  This callback is needed by HotplugHandlers that
need to wait until after -&gt;reset().

Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Message-Id: &lt;20180716083732.3347-2-stefanha@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>qdev: hotplug: drop HotplugHandler.post_plug callback</title>
<updated>2016-11-15T15:20:37+00:00</updated>
<author>
<name>Xiao Guangrong</name>
</author>
<published>2016-11-07T11:13:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=c7f8d0f3a52b5ef8fdcd305cce438f67d7e06a9f'/>
<id>urn:sha1:c7f8d0f3a52b5ef8fdcd305cce438f67d7e06a9f</id>
<content type='text'>
as nvdimm acpi is okay to build fit when the nvdimm device
has not been 'realized'

Suggested-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Signed-off-by: Xiao Guangrong &lt;guangrong.xiao@linux.intel.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Reviewed-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
</content>
</entry>
<entry>
<title>nvdimm acpi: introduce fit buffer</title>
<updated>2016-11-01T17:21:09+00:00</updated>
<author>
<name>Xiao Guangrong</name>
</author>
<published>2016-10-28T16:35:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=75b0713e189a981e5bfd087d5f35705446bbb12a'/>
<id>urn:sha1:75b0713e189a981e5bfd087d5f35705446bbb12a</id>
<content type='text'>
The buffer is used to save the FIT info for all the presented nvdimm
devices which is updated after the nvdimm device is plugged or
unplugged. In the later patch, it will be used to construct NVDIMM
ACPI _FIT method which reflects the presented nvdimm devices after
nvdimm hotplug

As FIT buffer can not completely mapped into guest address space,
OSPM will exit to QEMU multiple times, however, there is the race
condition - FIT may be changed during these multiple exits, so that
some rules are introduced:
1) the user should hold the @lock to access the buffer and
2) mark @dirty whenever the buffer is updated.

@dirty is cleared for the first time OSPM gets fit buffer, if
dirty is detected in the later access, OSPM will restart the
access

As fit should be updated after nvdimm device is successfully realized
so that a new hotplug callback, post_hotplug, is introduced

Signed-off-by: Xiao Guangrong &lt;guangrong.xiao@linux.intel.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>qdev: hotplug: Introduce HotplugHandler.pre_plug() callback</title>
<updated>2016-06-17T06:33:48+00:00</updated>
<author>
<name>Igor Mammedov</name>
</author>
<published>2016-05-12T03:48:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=41346263c4039fd2edca61c031c9396577693036'/>
<id>urn:sha1:41346263c4039fd2edca61c031c9396577693036</id>
<content type='text'>
pre_plug callback is to be called before device.realize() is executed.
This would allow to check/set device's properties from HotplugHandler.

Signed-off-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Signed-off-by: Bharata B Rao &lt;bharata@linux.vnet.ibm.com&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Signed-off-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
</content>
</entry>
<entry>
<title>hw/core: Clean up includes</title>
<updated>2016-01-29T15:07:25+00:00</updated>
<author>
<name>Peter Maydell</name>
</author>
<published>2016-01-26T18:17:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=18c86e2b9d85a89818f485c2cadafa6e3932e43a'/>
<id>urn:sha1:18c86e2b9d85a89818f485c2cadafa6e3932e43a</id>
<content type='text'>
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes.

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Message-id: 1453832250-766-37-git-send-email-peter.maydell@linaro.org
</content>
</entry>
<entry>
<title>qdev: HotplugHandler: Provide unplug callback</title>
<updated>2014-10-15T03:03:13+00:00</updated>
<author>
<name>Igor Mammedov</name>
</author>
<published>2014-09-26T09:28:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=181a2c63236966b3c80eef131bac33a355a492da'/>
<id>urn:sha1:181a2c63236966b3c80eef131bac33a355a492da</id>
<content type='text'>
It is to be called for actual device removal and
will allow to separate request and removal handling
phases of x86-CPU devices and also it's a handler
to be called for synchronously removable devices.

Signed-off-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Reviewed-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Signed-off-by: Andreas Färber &lt;afaerber@suse.de&gt;
</content>
</entry>
<entry>
<title>qdev: HotplugHandler: Rename unplug callback to unplug_request</title>
<updated>2014-10-15T03:03:13+00:00</updated>
<author>
<name>Igor Mammedov</name>
</author>
<published>2014-09-26T09:28:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=14d5a28fb6bb8ac6505ad1faca2690df56fef326'/>
<id>urn:sha1:14d5a28fb6bb8ac6505ad1faca2690df56fef326</id>
<content type='text'>
'HotplugHandler.unplug' callback is currently used as async
call to issue unplug request for device that implements it.
Renaming 'unplug' callback to 'unplug_request' should help to
avoid confusion about what callback does and would allow to
introduce 'unplug' callback that would perform actual device
removal when guest is ready for it.

Signed-off-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Reviewed-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Signed-off-by: Andreas Färber &lt;afaerber@suse.de&gt;
</content>
</entry>
<entry>
<title>define hotplug interface</title>
<updated>2014-02-10T08:23:35+00:00</updated>
<author>
<name>Igor Mammedov</name>
</author>
<published>2014-02-05T15:36:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9f117d41841e13ca29cc2a10ac03258339ea1f8b'/>
<id>urn:sha1:9f117d41841e13ca29cc2a10ac03258339ea1f8b</id>
<content type='text'>
Provide a generic hotplug interface for hotplug handlers.
Intended for replacing hotplug mechanism used by
PCI/PCIE/SHPC code and will be used for memory hotplug.

Signed-off-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
</feed>
