KVM: VMX: Add helper to consolidate up PT/RTIT WRMSR fault logic
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 10 Dec 2019 23:24:33 +0000 (15:24 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Jan 2020 12:57:54 +0000 (13:57 +0100)
commite348ac7c9e34bb2109facaafd3eea65f47314a9d
tree827db271eb644fe7d58310a7ff242fb9b01393fc
parentfe6ed369fca98e99df55c932b85782a5687526b5
KVM: VMX: Add helper to consolidate up PT/RTIT WRMSR fault logic

Add a helper to consolidate the common checks for writing PT MSRs,
and opportunistically clean up the formatting of the affected code.

No functional change intended.

Cc: Chao Peng <chao.p.peng@linux.intel.com>
Cc: Luwei Kang <luwei.kang@intel.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c