mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-06 17:43:43 +00:00
KVM: nVMX: Avoid one redundant vmcs_read in prepare_vmcs12
IDT_VECTORING_INFO_FIELD was already read right after vmexit. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
This commit is contained in:
parent
02cdb50fd7
commit
44ceb9d665
@ -7404,8 +7404,7 @@ static void prepare_vmcs12(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12)
|
||||
|
||||
vmcs12->vm_exit_intr_info = vmcs_read32(VM_EXIT_INTR_INFO);
|
||||
vmcs12->vm_exit_intr_error_code = vmcs_read32(VM_EXIT_INTR_ERROR_CODE);
|
||||
vmcs12->idt_vectoring_info_field =
|
||||
vmcs_read32(IDT_VECTORING_INFO_FIELD);
|
||||
vmcs12->idt_vectoring_info_field = to_vmx(vcpu)->idt_vectoring_info;
|
||||
vmcs12->idt_vectoring_error_code =
|
||||
vmcs_read32(IDT_VECTORING_ERROR_CODE);
|
||||
vmcs12->vm_exit_instruction_len = vmcs_read32(VM_EXIT_INSTRUCTION_LEN);
|
||||
|
Loading…
Reference in New Issue
Block a user