Skip to content

Commit

Permalink
amd64/vmm: Rename vm_get_vmspace() to vm_vmspace()
Browse files Browse the repository at this point in the history
For consistency with other vm accessors.

No functional change intended.

Reviewed by:	corvink
Differential Revision:	https://reviews.freebsd.org/D48268
  • Loading branch information
markjdb committed Jan 7, 2025
1 parent b09fe08 commit c945c9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sys/amd64/include/vmm.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ vcpu_should_yield(struct vcpu *vcpu)

void *vcpu_stats(struct vcpu *vcpu);
void vcpu_notify_event(struct vcpu *vcpu, bool lapic_intr);
struct vmspace *vm_get_vmspace(struct vm *vm);
struct vmspace *vm_vmspace(struct vm *vm);
struct vatpic *vm_atpic(struct vm *vm);
struct vatpit *vm_atpit(struct vm *vm);
struct vpmtmr *vm_pmtmr(struct vm *vm);
Expand Down
3 changes: 1 addition & 2 deletions sys/amd64/vmm/vmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2677,9 +2677,8 @@ vcpu_notify_event(struct vcpu *vcpu, bool lapic_intr)
}

struct vmspace *
vm_get_vmspace(struct vm *vm)
vm_vmspace(struct vm *vm)
{

return (vm->vmspace);
}

Expand Down
2 changes: 1 addition & 1 deletion sys/amd64/vmm/vmm_dev_machdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ vmmdev_machdep_ioctl(struct vm *vm, struct vcpu *vcpu, u_long cmd, caddr_t data,
break;
case VM_GET_GPA_PMAP:
gpapte = (struct vm_gpa_pte *)data;
pmap_get_mapping(vmspace_pmap(vm_get_vmspace(vm)),
pmap_get_mapping(vmspace_pmap(vm_vmspace(vm)),
gpapte->gpa, gpapte->pte, &gpapte->ptenum);
error = 0;
break;
Expand Down

0 comments on commit c945c9d

Please sign in to comment.