diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-04 15:16:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-04 15:16:46 -0400 |
commit | 8533ce72718871fb528d853391746f36243273af (patch) | |
tree | a3ac06520e45cb6a472ed83979b0d48b6c2cec15 /virt | |
parent | c9b88e9581828bb8bba06c5e7ee8ed1761172b6e (diff) | |
parent | 42cbc04fd3b5e3f9b011bf9fa3ce0b3d1e10b58b (diff) |
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
Pull KVM changes from Paolo Bonzini:
"These are the x86, MIPS and s390 changes; PPC and ARM will come in a
few days.
MIPS and s390 have little going on this release; just bugfixes, some
small, some larger.
The highlights for x86 are nested VMX improvements (Jan Kiszka),
optimizations for old processor (up to Nehalem, by me and Bandan Das),
and a lot of x86 emulator bugfixes (Nadav Amit).
Stephen Rothwell reported a trivial conflict with the tracing branch"
* tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (104 commits)
x86/kvm: Resolve shadow warnings in macro expansion
KVM: s390: rework broken SIGP STOP interrupt handling
KVM: x86: always exit on EOIs for interrupts listed in the IOAPIC redir table
KVM: vmx: remove duplicate vmx_mpx_supported() prototype
KVM: s390: Fix memory leak on busy SIGP stop
x86/kvm: Resolve shadow warning from min macro
kvm: Resolve missing-field-initializers warnings
Replace NR_VMX_MSR with its definition
KVM: x86: Assertions to check no overrun in MSR lists
KVM: x86: set rflags.rf during fault injection
KVM: x86: Setting rflags.rf during rep-string emulation
KVM: x86: DR6/7.RTM cannot be written
KVM: nVMX: clean up nested_release_vmcs12 and code around it
KVM: nVMX: fix lifetime issues for vmcs02
KVM: x86: Defining missing x86 vectors
KVM: x86: emulator injects #DB when RFLAGS.RF is set
KVM: x86: Cleanup of rflags.rf cleaning
KVM: x86: Clear rflags.rf on emulated instructions
KVM: x86: popf emulation should not change RF
KVM: x86: Clearing rflags.rf upon skipped emulated instruction
...
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/ioapic.c | 7 | ||||
-rw-r--r-- | virt/kvm/irq_comm.c | 4 |
2 files changed, 5 insertions, 6 deletions
diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c index 2458a1dc2ba9..e8ce34c9db32 100644 --- a/virt/kvm/ioapic.c +++ b/virt/kvm/ioapic.c | |||
@@ -254,10 +254,9 @@ void kvm_ioapic_scan_entry(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap, | |||
254 | spin_lock(&ioapic->lock); | 254 | spin_lock(&ioapic->lock); |
255 | for (index = 0; index < IOAPIC_NUM_PINS; index++) { | 255 | for (index = 0; index < IOAPIC_NUM_PINS; index++) { |
256 | e = &ioapic->redirtbl[index]; | 256 | e = &ioapic->redirtbl[index]; |
257 | if (!e->fields.mask && | 257 | if (e->fields.trig_mode == IOAPIC_LEVEL_TRIG || |
258 | (e->fields.trig_mode == IOAPIC_LEVEL_TRIG || | 258 | kvm_irq_has_notifier(ioapic->kvm, KVM_IRQCHIP_IOAPIC, index) || |
259 | kvm_irq_has_notifier(ioapic->kvm, KVM_IRQCHIP_IOAPIC, | 259 | index == RTC_GSI) { |
260 | index) || index == RTC_GSI)) { | ||
261 | if (kvm_apic_match_dest(vcpu, NULL, 0, | 260 | if (kvm_apic_match_dest(vcpu, NULL, 0, |
262 | e->fields.dest_id, e->fields.dest_mode)) { | 261 | e->fields.dest_id, e->fields.dest_mode)) { |
263 | __set_bit(e->fields.vector, | 262 | __set_bit(e->fields.vector, |
diff --git a/virt/kvm/irq_comm.c b/virt/kvm/irq_comm.c index ced4a542a031..a228ee82bad2 100644 --- a/virt/kvm/irq_comm.c +++ b/virt/kvm/irq_comm.c | |||
@@ -323,13 +323,13 @@ out: | |||
323 | 323 | ||
324 | #define IOAPIC_ROUTING_ENTRY(irq) \ | 324 | #define IOAPIC_ROUTING_ENTRY(irq) \ |
325 | { .gsi = irq, .type = KVM_IRQ_ROUTING_IRQCHIP, \ | 325 | { .gsi = irq, .type = KVM_IRQ_ROUTING_IRQCHIP, \ |
326 | .u.irqchip.irqchip = KVM_IRQCHIP_IOAPIC, .u.irqchip.pin = (irq) } | 326 | .u.irqchip = { .irqchip = KVM_IRQCHIP_IOAPIC, .pin = (irq) } } |
327 | #define ROUTING_ENTRY1(irq) IOAPIC_ROUTING_ENTRY(irq) | 327 | #define ROUTING_ENTRY1(irq) IOAPIC_ROUTING_ENTRY(irq) |
328 | 328 | ||
329 | #ifdef CONFIG_X86 | 329 | #ifdef CONFIG_X86 |
330 | # define PIC_ROUTING_ENTRY(irq) \ | 330 | # define PIC_ROUTING_ENTRY(irq) \ |
331 | { .gsi = irq, .type = KVM_IRQ_ROUTING_IRQCHIP, \ | 331 | { .gsi = irq, .type = KVM_IRQ_ROUTING_IRQCHIP, \ |
332 | .u.irqchip.irqchip = SELECT_PIC(irq), .u.irqchip.pin = (irq) % 8 } | 332 | .u.irqchip = { .irqchip = SELECT_PIC(irq), .pin = (irq) % 8 } } |
333 | # define ROUTING_ENTRY2(irq) \ | 333 | # define ROUTING_ENTRY2(irq) \ |
334 | IOAPIC_ROUTING_ENTRY(irq), PIC_ROUTING_ENTRY(irq) | 334 | IOAPIC_ROUTING_ENTRY(irq), PIC_ROUTING_ENTRY(irq) |
335 | #else | 335 | #else |