]> xenbits.xensource.com Git - xen.git/commitdiff
docs: correct values for old VMDP unplug
authorOlaf Hering <olaf@aepfle.de>
Mon, 19 Sep 2016 09:29:46 +0000 (09:29 +0000)
committerWei Liu <wei.liu2@citrix.com>
Mon, 19 Sep 2016 11:33:11 +0000 (12:33 +0100)
Fix commit f6d4cf5 ("docs: document old SUSE/Novell unplug for HVM").
The values which VMDP used to control either NIC or disk are flipped.
What the code does is:

     case 8:
        if (val == 1 ) {
                ide_unplug_harddisks();
        } else if (val == 2) {
                pci_unplug_netifs();
                net_tap_shutdown_all();
        }
        break;

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Wei Liu <wei.liu2@citrix.com>
docs/misc/hvm-emulated-unplug.markdown

index 70fb0240fb5d41e146850581eeb2d9594972690d..256cea25030e57384bedabb618f4d0ad12b70acd 100644 (file)
@@ -89,8 +89,8 @@ Novells VMDP. Depending on how VMDP was configured it would control all
 devices, or either NIC or storage. To control all devices the value 0x1
 was written to offset 0x4 in the memory region of the Xen Platform PCI
 Device. This was supposed to unplug NIC, IDE and SCSI devices. If VMDP
-was configured to control just NIC devices it would write the value 0x1
+was configured to control just NIC devices it would write the value 0x2
 to offset 0x8. If VMDP was configured to control just storage devices it
-would write the value 0x2 to offset 0x8. Starting with VMDP version 1.7
+would write the value 0x1 to offset 0x8. Starting with VMDP version 1.7
 (released 2011) the official protocol was used.