Use designated initializers for vmm_ops.
MFC after: 3 days
This commit is contained in:
parent
9509775394
commit
13a7c4d478
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350696
@ -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,
|
||||
};
|
||||
|
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user