521c6d4a-x86-don-t-allow-Dom0-access-to-the-MSI-address-range.patch 521c6d6c-x86-don-t-allow-Dom0-access-to-the-HT-address-range.patch 521c6e23-x86-Intel-add-support-for-Haswell-CPU-models.patch 521db25f-Fix-inactive-timer-list-corruption-on-second-S3-resume.patch 521e1156-x86-AVX-instruction-emulation-fixes.patch 521ef8d9-AMD-IOMMU-add-missing-checks.patch 52205a7d-hvmloader-smbios-Correctly-count-the-number-of-tables-written.patch 52205a90-public-hvm_xs_strings.h-Fix-ABI-regression-for-OEM-SMBios-strings.patch 52205e27-x86-xsave-initialization-improvements.patch 5226020f-xend-handle-extended-PCI-configuration-space-when-saving-state.patch 52260214-xend-fix-file-descriptor-leak-in-pci-utilities.patch 52285317-hvmloader-fix-SeaBIOS-interface.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=271
40 lines
1.5 KiB
Diff
40 lines
1.5 KiB
Diff
From: Olaf Hering <olaf@aepfle.de>
|
|
Subject: [PATCH v2] unmodified_drivers: enable unplug per default
|
|
|
|
Since xen-3.3 an official unplug protocol for emulated hardware is
|
|
available in the toolstack. The pvops kernel does the unplug per
|
|
default, so it is safe to do it also in the drivers for forward ported
|
|
xenlinux.
|
|
Currently its required to load xen-platform-pci with the module
|
|
parameter dev_unplug=all, which is cumbersome.
|
|
|
|
Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|
---
|
|
unmodified_drivers/linux-2.6/platform-pci/platform-pci.c | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
Index: xen-4.3.0-testing/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
|
|
===================================================================
|
|
--- xen-4.3.0-testing.orig/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
|
|
+++ xen-4.3.0-testing/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
|
|
@@ -66,7 +66,7 @@ MODULE_LICENSE("GPL");
|
|
static char *dev_unplug;
|
|
module_param(dev_unplug, charp, 0644);
|
|
MODULE_PARM_DESC(dev_unplug, "Emulated devices to unplug: "
|
|
- "[all,][ide-disks,][aux-ide-disks,][nics]\n");
|
|
+ "[all,][ide-disks,][aux-ide-disks,][nics] (default is 'all')\n");
|
|
|
|
struct pci_dev *xen_platform_pdev;
|
|
|
|
@@ -290,6 +290,10 @@ static int check_platform_magic(struct d
|
|
short magic, unplug = 0;
|
|
char protocol, *p, *q, *err;
|
|
|
|
+ /* Unconditionally unplug everything */
|
|
+ if (!dev_unplug)
|
|
+ unplug = UNPLUG_ALL;
|
|
+
|
|
for (p = dev_unplug; p; p = q) {
|
|
q = strchr(dev_unplug, ',');
|
|
if (q)
|