mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-24 02:21:52 -06:00
hw/ide/piix: Add some documentation to pci_piix3_xen_ide_unplug()
The comment is based on commit message
ae4d2eb273
'xen-platform: add missing disk
unplug option'. Since it seems to describe design decisions and
limitations that still apply it seems worth having.
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Message-Id: <20220513180957.90514-3-shentey@gmail.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
This commit is contained in:
parent
7851b21a81
commit
3690241746
1 changed files with 11 additions and 0 deletions
|
@ -173,6 +173,17 @@ static void pci_piix_ide_realize(PCIDevice *dev, Error **errp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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).
|
||||||
|
*
|
||||||
|
* NOTE: The semantics of what happens if unplug of all disks and 'aux' disks
|
||||||
|
* is simultaneously requested is not clear. The implementation assumes
|
||||||
|
* that an 'all' request overrides an 'aux' request.
|
||||||
|
*
|
||||||
|
* [1] https://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=docs/misc/hvm-emulated-unplug.pandoc
|
||||||
|
*/
|
||||||
int pci_piix3_xen_ide_unplug(DeviceState *dev, bool aux)
|
int pci_piix3_xen_ide_unplug(DeviceState *dev, bool aux)
|
||||||
{
|
{
|
||||||
PCIIDEState *pci_ide;
|
PCIIDEState *pci_ide;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue