diff options
| author | Zhenzhong Duan <[email protected]> | 2022-03-11 18:26:42 +0800 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-04-02 05:37:26 -0400 |
| commit | b76edfe91a87a5cca19cdca09bf6d08f08d4d6e9 (patch) | |
| tree | 25608201b2735e84600ad36beaac04d567ac2b35 /drivers/fpga/tests/fpga-bridge-test.c | |
| parent | 880993138396f8f0be620c425d08f84490c35251 (diff) | |
KVM: x86: cleanup enter_rmode()
vmx_set_efer() sets uret->data but, in fact if the value of uret->data
will be used vmx_setup_uret_msrs() will have rewritten it with the value
returned by update_transition_efer(). uret->data is consumed if and only
if uret->load_into_hardware is true, and vmx_setup_uret_msrs() takes care
of (a) updating uret->data before setting uret->load_into_hardware to true
(b) setting uret->load_into_hardware to false if uret->data isn't updated.
Opportunistically use "vmx" directly instead of redoing to_vmx().
Signed-off-by: Zhenzhong Duan <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions