The 0-day bot also reported some warnings. vcpu_to_role_regs() needs to be
This is good stuff, I made a few comments but almost all of them (all except
the last comment on patch 9, "Unconditionally zap unsync SPs") are cosmetic
and I can resolve them myself.
static, the helpers are added without a user. I liked the idea of adding the
helpers in one patch, but I can't really defend adding them without a user. :-/
arch/x86/kvm/mmu/mmu.c:209:26: warning: no previous prototype for function 'vcpu_to_role_regs' [-Wmissing-prototypes]
struct kvm_mmu_role_regs vcpu_to_role_regs(struct kvm_vcpu *vcpu)
^
arch/x86/kvm/mmu/mmu.c:209:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct kvm_mmu_role_regs vcpu_to_role_regs(struct kvm_vcpu *vcpu)
^
static
arch/x86/kvm/mmu/mmu.c:199:1: warning: unused function '____is_cr0_wp' [-Wunused-function]
BUILD_MMU_ROLE_REGS_ACCESSOR(cr0, wp, X86_CR0_WP);