19d8f590f0
xen.spec - bsc#945167 - Running command ’ xl pci-assignable-add 03:10.1’ secondly show errors 55f7f9d2-libxl-slightly-refine-pci-assignable-add-remove-handling.patch - Upstream patches from Jan 55f2e438-x86-hvm-fix-saved-pmtimer-and-hpet-values.patch 55f9345b-x86-MSI-fail-if-no-hardware-support.patch 5604f239-x86-PV-properly-populate-descriptor-tables.patch 5604f2e6-vt-d-fix-IM-bit-mask-and-unmask-of-FECTL_REG.patch 560a4af9-x86-EPT-tighten-conditions-of-IOMMU-mapping-updates.patch 560a7c36-x86-p2m-pt-delay-freeing-of-intermediate-page-tables.patch 560a7c53-x86-p2m-pt-ignore-pt-share-flag-for-shadow-mode-guests.patch 560bd926-credit1-fix-tickling-when-it-happens-from-a-remote-pCPU.patch 560e6d34-x86-p2m-pt-tighten-conditions-of-IOMMU-mapping-updates.patch - bsc#941074 - VmError: Device 51728 (vbd) could not be connected. Hotplug scripts not working. hotplug-Linux-block-performance-fix.patch - bsc#947165 - VUL-0: CVE-2015-7311: xen: libxl fails to honour readonly flag on disks with qemu-xen (xsa-142) CVE-2015-7311-xsa142.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=378
24 lines
852 B
Diff
24 lines
852 B
Diff
# Commit c7d5d5d8ea1ecbd6ef8b47dace4dec825f0f6e48
|
|
# Date 2015-09-16 11:20:27 +0200
|
|
# Author Jan Beulich <jbeulich@suse.com>
|
|
# Committer Jan Beulich <jbeulich@suse.com>
|
|
x86/MSI: fail if no hardware support
|
|
|
|
This is to guard against buggy callers (luckily Dom0 only) invoking
|
|
the respective hypercall for a device not being MSI-capable.
|
|
|
|
Signed-off-by: Jan Beulich <jbeulich@suse.com>
|
|
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
|
|
|
|
--- a/xen/arch/x86/msi.c
|
|
+++ b/xen/arch/x86/msi.c
|
|
@@ -566,6 +566,8 @@ static int msi_capability_init(struct pc
|
|
|
|
ASSERT(spin_is_locked(&pcidevs_lock));
|
|
pos = pci_find_cap_offset(seg, bus, slot, func, PCI_CAP_ID_MSI);
|
|
+ if ( !pos )
|
|
+ return -ENODEV;
|
|
control = pci_conf_read16(seg, bus, slot, func, msi_control_reg(pos));
|
|
maxvec = multi_msi_capable(control);
|
|
if ( nvec > maxvec )
|