android_kernel_oneplus_msm8998/arch/x86/kvm
Vitaly Kuznetsov 5664d3298b KVM: x86: avoid misreporting level-triggered irqs as edge-triggered in tracing
[ Upstream commit 7a223e06b1a411cef6c4cd7a9b9a33c8d225b10e ]

In __apic_accept_irq() interface trig_mode is int and actually on some code
paths it is set above u8:

kvm_apic_set_irq() extracts it from 'struct kvm_lapic_irq' where trig_mode
is u16. This is done on purpose as e.g. kvm_set_msi_irq() sets it to
(1 << 15) & e->msi.data

kvm_apic_local_deliver sets it to reg & (1 << 15).

Fix the immediate issue by making 'tm' into u16. We may also want to adjust
__apic_accept_irq() interface and use proper sizes for vector, level,
trig_mode but this is not urgent.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-05-16 19:45:06 +02:00
..
assigned-dev.c KVM: x86: move kvm_set_irq_inatomic to legacy device assignment 2015-11-04 16:24:36 +01:00
assigned-dev.h
cpuid.c KVM: SVM: Implement VIRT_SPEC_CTRL support for SSBD 2018-12-17 21:55:14 +01:00
cpuid.h KVM: SVM: Implement VIRT_SPEC_CTRL support for SSBD 2018-12-17 21:55:14 +01:00
emulate.c KVM: x86: Don't clear EFER during SMM transitions for 32-bit vCPU 2019-04-27 09:34:01 +02:00
hyperv.c kvm/x86: Hyper-V HV_X64_MSR_VP_RUNTIME support 2015-10-01 15:06:33 +02:00
hyperv.h
i8254.c KVM: i8254: change PIT discard tick policy 2016-04-12 09:08:33 -07:00
i8254.h
i8259.c
ioapic.c KVM: x86: ioapic: Preserve read-only values in the redirection table 2018-02-03 17:04:26 +01:00
ioapic.h KVM: x86: Add EOI exit bitmap inference 2015-10-01 15:06:28 +02:00
iommu.c
irq.c KVM: x86: Add support for local interrupt requests from userspace 2015-10-01 15:06:29 +02:00
irq.h KVM: x86: Add support for local interrupt requests from userspace 2015-10-01 15:06:29 +02:00
irq_comm.c KVM: x86: check for pic and ioapic presence before use 2016-12-02 09:09:00 +01:00
Kconfig KVM: add X86_LOCAL_APIC dependency 2018-02-25 11:03:49 +01:00
kvm_cache_regs.h
lapic.c KVM: x86: fix empty-body warnings 2018-12-17 21:55:11 +01:00
lapic.h KVM: x86: flush pending lapic jump label updates on module unload 2017-01-19 20:17:19 +01:00
Makefile
mmu.c kvm: mmu: Fix race in emulated page table writes 2018-12-13 09:21:26 +01:00
mmu.h KVM: async_pf: avoid async pf injection when in guest mode 2017-06-14 13:16:21 +02:00
mmu_audit.c
mmutrace.h
mtrr.c KVM: MTRR: fix kvm_mtrr_check_gfn_range_consistency page fault 2016-08-20 18:09:17 +02:00
paging_tmpl.h KVM: x86: MMU: fix ubsan index-out-of-range warning 2016-03-03 15:07:29 -08:00
pmu.c
pmu.h
pmu_amd.c
pmu_intel.c KVM: x86/vPMU: fix undefined shift in intel_pmu_refresh() 2017-07-05 14:37:23 +02:00
svm.c KVM: nSVM: clear events pending from svm_complete_interrupts() when exiting to L1 2019-03-23 08:44:20 +01:00
trace.h KVM: x86: avoid misreporting level-triggered irqs as edge-triggered in tracing 2019-05-16 19:45:06 +02:00
tss.h
vmx.c KVM: X86: Fix residual mmio emulation request to userspace 2019-03-23 08:44:40 +01:00
x86.c KVM: fail KVM_SET_VCPU_EVENTS with invalid exception number 2019-05-16 19:44:43 +02:00
x86.h KVM: x86: pass kvm_vcpu to kvm_read_guest_virt and kvm_write_guest_virt_system 2018-06-16 09:54:26 +02:00