KVM: x86: tweak types of fields in kvm_lapic_irq
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Apr 2015 12:57:05 +0000 (14:57 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 May 2015 09:29:43 +0000 (11:29 +0200)
commitb7cb22317305883d50f930cd6bf2fdb37df930c1
tree7f84fd0ed95a0f50bb785e20351533ef072fc1e6
parentd28bc9dd25ce023270d2e039e7c98d38ecbf7758
KVM: x86: tweak types of fields in kvm_lapic_irq

Change to u16 if they only contain data in the low 16 bits.

Change the level field to bool, since we assign 1 sometimes, but
just mask icr_low with APIC_INT_ASSERT in apic_send_ipi.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/lapic.c