diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2009-10-26 16:22:44 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-30 08:39:34 -0500 |
commit | 76f5159d7fc4cdea9574dfbb54307735b280bc66 (patch) | |
tree | 2e0c300893d375befca70b408fb57f804af202fb /Makefile.target | |
parent | 79758e95d7f018dabd726bf7eb8cdd087692410c (diff) |
qemu/msix: fix table access issues
Fixes a couple of issues with msix table access:
- With misbehaving guests, misaligned 4 byte access could overflow
msix table and cause qemu to segfault. Since PCI spec requires
host to only issue dword-aligned accesses, as a fix,
it's enough to mask the address low bits.
- Tables use pci format, not native format, and so
we must use pci_[sg]et_long on read/write.
Reported-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'Makefile.target')
0 files changed, 0 insertions, 0 deletions