Use designated initializers for vmm_ops.

MFC after:	3 days
This commit is contained in:
markj 2019-08-07 19:45:44 +00:00
parent 232c4ff18a
commit 6fc62ff420
2 changed files with 32 additions and 32 deletions

View File

@ -2283,20 +2283,20 @@ svm_vlapic_cleanup(void *arg, struct vlapic *vlapic)
}
struct vmm_ops vmm_ops_amd = {
svm_init,
svm_cleanup,
svm_restore,
svm_vminit,
svm_vmrun,
svm_vmcleanup,
svm_getreg,
svm_setreg,
vmcb_getdesc,
vmcb_setdesc,
svm_getcap,
svm_setcap,
svm_npt_alloc,
svm_npt_free,
svm_vlapic_init,
svm_vlapic_cleanup
.init = svm_init,
.cleanup = svm_cleanup,
.resume = svm_restore,
.vminit = svm_vminit,
.vmrun = svm_vmrun,
.vmcleanup = svm_vmcleanup,
.vmgetreg = svm_getreg,
.vmsetreg = svm_setreg,
.vmgetdesc = vmcb_getdesc,
.vmsetdesc = vmcb_setdesc,
.vmgetcap = svm_getcap,
.vmsetcap = svm_setcap,
.vmspace_alloc = svm_npt_alloc,
.vmspace_free = svm_npt_free,
.vlapic_init = svm_vlapic_init,
.vlapic_cleanup = svm_vlapic_cleanup,
};

View File

@ -3790,20 +3790,20 @@ vmx_vlapic_cleanup(void *arg, struct vlapic *vlapic)
}
struct vmm_ops vmm_ops_intel = {
vmx_init,
vmx_cleanup,
vmx_restore,
vmx_vminit,
vmx_run,
vmx_vmcleanup,
vmx_getreg,
vmx_setreg,
vmx_getdesc,
vmx_setdesc,
vmx_getcap,
vmx_setcap,
ept_vmspace_alloc,
ept_vmspace_free,
vmx_vlapic_init,
vmx_vlapic_cleanup,
.init = vmx_init,
.cleanup = vmx_cleanup,
.resume = vmx_restore,
.vminit = vmx_vminit,
.vmrun = vmx_run,
.vmcleanup = vmx_vmcleanup,
.vmgetreg = vmx_getreg,
.vmsetreg = vmx_setreg,
.vmgetdesc = vmx_getdesc,
.vmsetdesc = vmx_setdesc,
.vmgetcap = vmx_getcap,
.vmsetcap = vmx_setcap,
.vmspace_alloc = ept_vmspace_alloc,
.vmspace_free = ept_vmspace_free,
.vlapic_init = vmx_vlapic_init,
.vlapic_cleanup = vmx_vlapic_cleanup,
};