Skip to contentSkip to conversation

docs: correct values for old VMDP unplug

PATCH In review Olaf Hering 2 participants 3 messages Sep 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: correct values for old VMDP unplug

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;
---
 docs/misc/hvm-emulated-unplug.markdown | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/misc/hvm-emulated-unplug.markdown +2 -2
index 70fb024..256cea2 100644
@@ -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.
 

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Olaf Hering

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;
Quoted 1 line

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#2 lore raw
Quoted 14 lines · Wei Liu
Quoted 13 lines · Olaf Hering

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;
Quoted 3 lines
Quoted 1 line

Pushed.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel