qemu-e2k/hw
Jan Beulich b38ec5ee7a xen/MSI-X: limit error messages
Limit error messages resulting from bad guest behavior to avoid allowing
the guest to cause the control domain's disk to fill.

The first message in pci_msix_write() can simply be deleted, as this
is indeed bad guest behavior, but such out of bounds writes don't
really need to be logged.

The second one is more problematic, as there guest behavior may only
appear to be wrong: For one, the old logic didn't take the mask-all bit
into account. And then this shouldn't depend on host device state (i.e.
the host may have masked the entry without the guest having done so).
Plus these writes shouldn't be dropped even when an entry is unmasked.
Instead, if they can't be made take effect right away, they should take
effect on the next unmasking or enabling operation - the specification
explicitly describes such caching behavior. Until we can validly drop
the message (implementing such caching/latching behavior), issue the
message just once per MSI-X table entry.

Note that the log message in pci_msix_read() similar to the one being
removed here is not an issue: "addr" being of unsigned type, and the
maximum size of the MSI-X table being 32k, entry_nr simply can't be
negative and hence the conditonal guarding issuing of the message will
never be true.

This is XSA-130.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
2015-06-02 15:07:00 +00:00
..
9pfs virtio: make features 64bit wide 2015-06-01 14:18:55 +02:00
acpi hw/acpi/aml-build: Fix memory leak 2015-06-01 14:18:54 +02:00
alpha
arm hw/arm/virt: Enable dynamic generation of ACPI v5.1 tables 2015-05-29 11:28:59 +01:00
audio
block virtio: make features 64bit wide 2015-06-01 14:18:55 +02:00
bt
char virtio: make features 64bit wide 2015-06-01 14:18:55 +02:00
core qdev: add 64bit properties 2015-06-01 14:18:55 +02:00
cpu
cris
display spice: don't update mm_time when spice-server is stopped. 2015-05-29 09:56:01 +02:00
dma
gpio
i2c ACPI: split CONFIG_ACPI into 4 pieces 2015-05-29 11:28:59 +01:00
i386 acpi: add missing ssdt 2015-06-01 21:40:22 +02:00
ide ahci: do not remap clb/fis unconditionally 2015-05-22 15:58:22 -04:00
input virtio: make features 64bit wide 2015-06-01 14:18:55 +02:00
intc hw/intc/arm_gic: Add grouping support to gic_update() 2015-05-12 11:57:18 +01:00
ipack
isa
lm32
m68k
mem
microblaze microblaze: fix memory leak 2015-04-30 16:06:18 +03:00
mips target-mips: fix memory leak 2015-04-30 16:06:17 +03:00
misc misc: Fix new collection of typos 2015-04-30 16:05:48 +03:00
moxie
net vhost-user: add multi queue support 2015-06-01 14:18:55 +02:00
nvram
openrisc
pci xen: don't allow guest to control MSI mask register 2015-06-02 15:07:00 +00:00
pci-bridge pci: Remove unused function ich9_d2pbr_init() 2015-04-30 16:05:48 +03:00
pci-host
pcmcia
ppc spapr: define SPAPR_COMPAT_2_3 2015-05-31 16:26:41 +02:00
s390x virtio-s390: introduce virtio_s390_device_plugged() 2015-05-31 16:47:50 +02:00
scsi virtio: make features 64bit wide 2015-06-01 14:18:55 +02:00
sd hw/sd: Don't pass BlockBackend to sd_reset() 2015-05-12 11:57:16 +01:00
sh4
sparc
sparc64
ssi
timer
tpm TPM2 ACPI table support 2015-06-01 14:18:54 +02:00
tricore
unicore32
usb trivial patches for 2015-05-09 2015-05-11 13:54:00 +01:00
vfio exec: move rcu_read_lock/unlock to address_space_translate callers 2015-04-30 16:55:32 +02:00
virtio vhost-user: add multi queue support 2015-06-01 14:18:55 +02:00
watchdog
xen xen/MSI-X: limit error messages 2015-06-02 15:07:00 +00:00
xenpv
xtensa
Makefile.objs