diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2010-05-14 07:44:30 -0400 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-07-27 02:13:25 -0400 |
commit | c1c5413ad58cb73267d328e6020268aa2e50d8ca (patch) | |
tree | f2c66141ab8d9fdb7b16a13d4d510ad09b2430ed /arch/x86/xen/enlighten.c | |
parent | 409771d258e9dd71c30f3c9520fd2b796ffc40f0 (diff) |
x86: Unplug emulated disks and nics.
Add a xen_emul_unplug command line option to the kernel to unplug
xen emulated disks and nics.
Set the default value of xen_emul_unplug depending on whether or
not the Xen PV frontends and the Xen platform PCI driver have
been compiled for this kernel (modules or built-in are both OK).
The user can specify xen_emul_unplug=ignore to enable PV drivers on HVM
even if the host platform doesn't support unplug.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r-- | arch/x86/xen/enlighten.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index a90172963884..157c93b62dd4 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c | |||
@@ -1314,6 +1314,7 @@ static void __init xen_hvm_guest_init(void) | |||
1314 | if (xen_feature(XENFEAT_hvm_callback_vector)) | 1314 | if (xen_feature(XENFEAT_hvm_callback_vector)) |
1315 | xen_have_vector_callback = 1; | 1315 | xen_have_vector_callback = 1; |
1316 | register_cpu_notifier(&xen_hvm_cpu_notifier); | 1316 | register_cpu_notifier(&xen_hvm_cpu_notifier); |
1317 | xen_unplug_emulated_devices(); | ||
1317 | have_vcpu_info_placement = 0; | 1318 | have_vcpu_info_placement = 0; |
1318 | x86_init.irqs.intr_init = xen_init_IRQ; | 1319 | x86_init.irqs.intr_init = xen_init_IRQ; |
1319 | xen_hvm_init_time_ops(); | 1320 | xen_hvm_init_time_ops(); |