]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Use "unsigned int", not "u32", for SPTEs' @access info
authorSean Christopherson <seanjc@google.com>
Fri, 24 Jun 2022 17:18:07 +0000 (17:18 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 25 Jun 2022 08:54:40 +0000 (04:54 -0400)
commit56bacd227e25e4fa1feae804caefebe44c1bf704
treebbc41cabc45a6442e251126305e01259db853866
parent30c7bf95cc29f48e08764b6bf1f7533c2ddda8ea
KVM: x86/mmu: Use "unsigned int", not "u32", for SPTEs' @access info

Use an "unsigned int" for @access parameters instead of a "u32", mostly
to be consistent throughout KVM, but also because "u32" is misleading.
@access can actually squeeze into a u8, i.e. doesn't need 32 bits, but is
as an "unsigned int" because sp->role.access is an unsigned int.

No functional change intended.

Link: https://lore.kernel.org/all/YqyZxEfxXLsHGoZ%2F@google.com
Cc: David Matlack <dmatlack@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220624171808.2845941-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c