Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/vmm/vmm_dev.c
Context not available. | |||||
struct vm_rtc_time *rtctime; | struct vm_rtc_time *rtctime; | ||||
struct vm_rtc_data *rtcdata; | struct vm_rtc_data *rtcdata; | ||||
struct vm_memmap *mm; | struct vm_memmap *mm; | ||||
struct vm_cpu_topology *topology; | |||||
sc = vmmdev_lookup2(cdev); | sc = vmmdev_lookup2(cdev); | ||||
if (sc == NULL) | if (sc == NULL) | ||||
Context not available. | |||||
case VM_RESTART_INSTRUCTION: | case VM_RESTART_INSTRUCTION: | ||||
error = vm_restart_instruction(sc->vm, vcpu); | error = vm_restart_instruction(sc->vm, vcpu); | ||||
break; | break; | ||||
case VM_SET_TOPOLOGY: | |||||
grehan: As above, no need for pointers here. | |||||
topology = (struct vm_cpu_topology *)data; | |||||
error = vm_set_topology(sc->vm, topology->sockets, | |||||
topology->cores, topology->threads, topology->maxcpus); | |||||
break; | |||||
case VM_GET_TOPOLOGY: | |||||
Done Inline ActionsIf GET_TOPOLOGY isn't going to be implemented it should have an EINVAL put in. Seems like it should be in bhyvectl. grehan: If GET_TOPOLOGY isn't going to be implemented it should have an EINVAL put in.
Seems like it… | |||||
Done Inline ActionsI am investigating this issue. rgrimes: I am investigating this issue. | |||||
Done Inline ActionsI have implemented GET_TOPOLOGY and taught bhyvectl how to print it. rgrimes: I have implemented GET_TOPOLOGY and taught bhyvectl how to print it. | |||||
topology = (struct vm_cpu_topology *)data; | |||||
vm_get_topology(sc->vm, &topology->sockets, &topology->cores, | |||||
&topology->threads, &topology->maxcpus); | |||||
error = 0; | |||||
break; | |||||
default: | default: | ||||
error = ENOTTY; | error = ENOTTY; | ||||
break; | break; | ||||
Context not available. |
As above, no need for pointers here.