[Devel] [PATCH rh7 v1] kvm fail: TMR for ioapic level interrupts

Pavel Butsykin pbutsykin at virtuozzo.com
Sat Feb 13 02:02:02 PST 2016


https://jira.sw.ru/browse/PSBM-41387

kvm-unit-tests results:

before:
/usr/libexec/qemu-kvm -enable-kvm -device pc-testdev -device isa-debug-exit,
iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -kernel
/root/kvm-unit-tests/x86/ioapic.flat
enabling apic
paging enabled
cr0 = 80010011
cr3 = 7fff000
cr4 = 20
x2apic enabled
...
FAIL: TMR for ioapic level interrupts (expected false)
PASS: TMR for ioapic level interrupts (expected true)
FAIL: TMR for ioapic edge interrupts (expected true)


after:
/usr/libexec/qemu-kvm -enable-kvm -device pc-testdev -device isa-debug-exit,
iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -kernel 
/root/kvm-unit-tests/x86/ioapic.flat
enabling apic
paging enabled
cr0 = 80010011
cr3 = 7fff000
cr4 = 20
x2apic enabled
...
PASS: TMR for ioapic level interrupts (expected false)
PASS: TMR for ioapic level interrupts (expected true)
PASS: TMR for ioapic edge interrupts (expected true)


Paolo Bonzini (1):
  KVM: x86: set TMR when the interrupt is accepted

 arch/x86/kvm/ioapic.c |  6 +-----
 arch/x86/kvm/ioapic.h |  3 +--
 arch/x86/kvm/lapic.c  | 19 ++++++++++---------
 arch/x86/kvm/lapic.h  |  1 -
 arch/x86/kvm/x86.c    |  5 +----
 5 files changed, 13 insertions(+), 21 deletions(-)

-- 
1.9.1



More information about the Devel mailing list