kvm: x86: offset is ensure to be in range
authorWei Yang <richardw.yang@linux.intel.com>
Mon, 1 Apr 2019 02:17:23 +0000 (19:17 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 18 Jun 2019 09:43:48 +0000 (11:43 +0200)
commit4cb8b1163586addc9e1f4eebe232a11534c24d4a
tree35741a0c491a77044518445197d12590faedf7de
parentee171d2f39d60c6405dc21a0aaa766cad2c9c43e
kvm: x86: offset is ensure to be in range

In function apic_mmio_write(), the offset has been checked in:

   * apic_mmio_in_range()
   * offset & 0xf

These two ensures offset is in range [0x010, 0xff0].

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c