diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/xen/platform-pci-unplug.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/x86/xen/platform-pci-unplug.c b/arch/x86/xen/platform-pci-unplug.c index 070dfa0654bd..0f456386cce5 100644 --- a/arch/x86/xen/platform-pci-unplug.c +++ b/arch/x86/xen/platform-pci-unplug.c | |||
@@ -78,10 +78,11 @@ void __init xen_unplug_emulated_devices(void) | |||
78 | /* check the version of the xen platform PCI device */ | 78 | /* check the version of the xen platform PCI device */ |
79 | r = check_platform_magic(); | 79 | r = check_platform_magic(); |
80 | /* If the version matches enable the Xen platform PCI driver. | 80 | /* If the version matches enable the Xen platform PCI driver. |
81 | * Also enable the Xen platform PCI driver if the version is really old | 81 | * Also enable the Xen platform PCI driver if the host does |
82 | * and the user told us to ignore it. */ | 82 | * not support the unplug protocol (XEN_PLATFORM_ERR_MAGIC) |
83 | * but the user told us that unplugging is unnecessary. */ | ||
83 | if (r && !(r == XEN_PLATFORM_ERR_MAGIC && | 84 | if (r && !(r == XEN_PLATFORM_ERR_MAGIC && |
84 | (xen_emul_unplug & XEN_UNPLUG_IGNORE))) | 85 | (xen_emul_unplug & XEN_UNPLUG_UNNECESSARY))) |
85 | return; | 86 | return; |
86 | /* Set the default value of xen_emul_unplug depending on whether or | 87 | /* Set the default value of xen_emul_unplug depending on whether or |
87 | * not the Xen PV frontends and the Xen platform PCI driver have | 88 | * not the Xen PV frontends and the Xen platform PCI driver have |
@@ -102,7 +103,7 @@ void __init xen_unplug_emulated_devices(void) | |||
102 | } | 103 | } |
103 | } | 104 | } |
104 | /* Now unplug the emulated devices */ | 105 | /* Now unplug the emulated devices */ |
105 | if (!(xen_emul_unplug & XEN_UNPLUG_IGNORE)) | 106 | if (!(xen_emul_unplug & XEN_UNPLUG_UNNECESSARY)) |
106 | outw(xen_emul_unplug, XEN_IOPORT_UNPLUG); | 107 | outw(xen_emul_unplug, XEN_IOPORT_UNPLUG); |
107 | xen_platform_pci_unplug = xen_emul_unplug; | 108 | xen_platform_pci_unplug = xen_emul_unplug; |
108 | } | 109 | } |
@@ -128,8 +129,8 @@ static int __init parse_xen_emul_unplug(char *arg) | |||
128 | xen_emul_unplug |= XEN_UNPLUG_AUX_IDE_DISKS; | 129 | xen_emul_unplug |= XEN_UNPLUG_AUX_IDE_DISKS; |
129 | else if (!strncmp(p, "nics", l)) | 130 | else if (!strncmp(p, "nics", l)) |
130 | xen_emul_unplug |= XEN_UNPLUG_ALL_NICS; | 131 | xen_emul_unplug |= XEN_UNPLUG_ALL_NICS; |
131 | else if (!strncmp(p, "ignore", l)) | 132 | else if (!strncmp(p, "unnecessary", l)) |
132 | xen_emul_unplug |= XEN_UNPLUG_IGNORE; | 133 | xen_emul_unplug |= XEN_UNPLUG_UNNECESSARY; |
133 | else if (!strncmp(p, "never", l)) | 134 | else if (!strncmp(p, "never", l)) |
134 | xen_emul_unplug |= XEN_UNPLUG_NEVER; | 135 | xen_emul_unplug |= XEN_UNPLUG_NEVER; |
135 | else | 136 | else |