]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ide/piix.c
xen-platform: add missing disk unplug option
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 24 Jan 2017 14:05:47 +0000 (14:05 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 27 Jan 2017 23:23:29 +0000 (15:23 -0800)
commitae4d2eb273b167dad748ea4249720319240b1ac2
tree29daef99af3e9563fd9ad480289e864101bd78af
parent090fa1c8c837ebabf8c199031e0f9a9bcdf26814
xen-platform: add missing disk unplug option

The Xen HVM unplug protocol [1] specifies a mechanism to allow guests to
request unplug of 'aux' disks (which is stated to mean all IDE disks,
except the primary master). This patch adds support for that unplug request.

NOTE: The semantics of what happens if unplug of all disks and 'aux' disks
      is simultaneously requests is not clear. The patch makes that
      assumption that an 'all' request overrides an 'aux' request.

[1] http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=docs/misc/hvm-emulated-unplug.markdown

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
----
Cc: Stefano Stabellini <sstabellini@kernel.org>
Cc: Anthony Perard <anthony.perard@citrix.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: John Snow <jsnow@redhat.com>
hw/i386/xen/xen_platform.c
hw/ide/piix.c
include/hw/ide.h