diff options
Diffstat (limited to 'sys/amd64/vmm/vmm.c')
| -rw-r--r-- | sys/amd64/vmm/vmm.c | 10 | 
1 files changed, 3 insertions, 7 deletions
| diff --git a/sys/amd64/vmm/vmm.c b/sys/amd64/vmm/vmm.c index f7c59847140b..f2bea0d82b5c 100644 --- a/sys/amd64/vmm/vmm.c +++ b/sys/amd64/vmm/vmm.c @@ -724,12 +724,7 @@ vm_name(struct vm *vm)  int  vm_map_mmio(struct vm *vm, vm_paddr_t gpa, size_t len, vm_paddr_t hpa)  { -	vm_object_t obj; - -	if ((obj = vmm_mmio_alloc(vm_vmspace(vm), gpa, len, hpa)) == NULL) -		return (ENOMEM); -	else -		return (0); +	return (vmm_mmio_alloc(vm_vmspace(vm), gpa, len, hpa));  }  int @@ -870,7 +865,7 @@ vm_assign_pptdev(struct vm *vm, int bus, int slot, int func)  int  vm_get_register(struct vcpu *vcpu, int reg, uint64_t *retval)  { - +	/* Negative values represent VM control structure fields. */  	if (reg >= VM_REG_LAST)  		return (EINVAL); @@ -882,6 +877,7 @@ vm_set_register(struct vcpu *vcpu, int reg, uint64_t val)  {  	int error; +	/* Negative values represent VM control structure fields. */  	if (reg >= VM_REG_LAST)  		return (EINVAL); | 
