align the coding style when access VMEXIT_QUAL

- align coding style to avoid redundant operations
   when operating on reading  VMX_EXIT_QUALIFICATION

Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
Yonghua Huang
2018-03-14 00:56:05 +08:00
committed by Jack Ren
parent 337706b6ba
commit 83e78e16c7
3 changed files with 10 additions and 6 deletions

View File

@@ -125,9 +125,11 @@ static const struct vm_exit_dispatch dispatch_table[] = {
[VMX_EXIT_REASON_TPR_BELOW_THRESHOLD] = {
.handler = unhandled_vmexit_handler},
[VMX_EXIT_REASON_APIC_ACCESS] = {
.handler = apicv_access_exit_handler},
.handler = apicv_access_exit_handler,
.need_exit_qualification = 1},
[VMX_EXIT_REASON_VIRTUALIZED_EOI] = {
.handler = apicv_virtualized_eoi_exit_handler},
.handler = apicv_virtualized_eoi_exit_handler,
.need_exit_qualification = 1},
[VMX_EXIT_REASON_GDTR_IDTR_ACCESS] = {
.handler = unhandled_vmexit_handler},
[VMX_EXIT_REASON_LDTR_TR_ACCESS] = {
@@ -151,7 +153,8 @@ static const struct vm_exit_dispatch dispatch_table[] = {
[VMX_EXIT_REASON_XSETBV] = {
.handler = unhandled_vmexit_handler},
[VMX_EXIT_REASON_APIC_WRITE] = {
.handler = apicv_write_exit_handler}
.handler = apicv_write_exit_handler,
.need_exit_qualification = 1}
};
struct vm_exit_dispatch *vmexit_handler(struct vcpu *vcpu)