mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 02:37:15 +00:00
arm64/vmm: Avoid unnecessary indirection in vmmops_modinit()
Most of vmm.h is machine-independent. Simplify merging amd64 and arm64 vmm code by removing this machine-dependent routine from arm64's vmm.h. No functional change intended. Reviewed by: andrew Differential Revision: https://reviews.freebsd.org/D45557
This commit is contained in:
parent
a03354b002
commit
d730cdea2a
|
@ -201,13 +201,6 @@ cpuset_t vm_active_cpus(struct vm *vm);
|
||||||
cpuset_t vm_debug_cpus(struct vm *vm);
|
cpuset_t vm_debug_cpus(struct vm *vm);
|
||||||
cpuset_t vm_suspended_cpus(struct vm *vm);
|
cpuset_t vm_suspended_cpus(struct vm *vm);
|
||||||
|
|
||||||
static __inline bool
|
|
||||||
virt_enabled(void)
|
|
||||||
{
|
|
||||||
|
|
||||||
return (has_hyp());
|
|
||||||
}
|
|
||||||
|
|
||||||
static __inline int
|
static __inline int
|
||||||
vcpu_rendezvous_pending(struct vm_eventinfo *info)
|
vcpu_rendezvous_pending(struct vm_eventinfo *info)
|
||||||
{
|
{
|
||||||
|
|
|
@ -239,7 +239,7 @@ vmmops_modinit(int ipinum)
|
||||||
int cpu, i;
|
int cpu, i;
|
||||||
bool rv __diagused;
|
bool rv __diagused;
|
||||||
|
|
||||||
if (!virt_enabled()) {
|
if (!has_hyp()) {
|
||||||
printf(
|
printf(
|
||||||
"vmm: Processor doesn't have support for virtualization\n");
|
"vmm: Processor doesn't have support for virtualization\n");
|
||||||
return (ENXIO);
|
return (ENXIO);
|
||||||
|
|
Loading…
Reference in a new issue