Re: [PATCH 2/3] KVM: x86: use kvm_complete_insn_gp in emulating RDMSR/WRMSR

2020-12-14 Thread Tom Lendacky
On 12/14/20 12:32 PM, Paolo Bonzini wrote: > Simplify the four functions that handle {kernel,user} {rd,wr}msr, there > is still some repetition between the two instances of rdmsr but the > whole business of calling kvm_inject_gp and kvm_skip_emulated_instruction > can be unified nicely. > >

[PATCH 2/3] KVM: x86: use kvm_complete_insn_gp in emulating RDMSR/WRMSR

2020-12-14 Thread Paolo Bonzini
Simplify the four functions that handle {kernel,user} {rd,wr}msr, there is still some repetition between the two instances of rdmsr but the whole business of calling kvm_inject_gp and kvm_skip_emulated_instruction can be unified nicely. Because complete_emulated_wrmsr now becomes essentially a