]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86: Use a u64 when passing the MMIO gen around
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 5 Feb 2019 21:01:15 +0000 (13:01 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Feb 2019 12:32:37 +0000 (13:32 +0100)
commit8ba74d2bcaacef42ca80532c7e67a8e9a261010e
treee9041116f03f1c20292b229e59a47a8efcd56a11
parent9de85a1db37fc5e033b42f50eb557db6c2ead827
KVM: x86: Use a u64 when passing the MMIO gen around

KVM currently uses an 'unsigned int' for the MMIO generation number
despite it being derived from the 64-bit memslots generation and
being propagated to (potentially) 64-bit sptes.  There is no hidden
agenda behind using an 'unsigned int', it's done simply because the
MMIO generation will never set bits above bit 19.

Passing a u64 will allow the "update in-progress" flag to be relocated
from bit 0 to bit 63 and removes the need to cast the generation back
to a u64 when propagating it to a spte.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c