Lines Matching refs:kernemu
195 struct vm_readwrite_kernemu_device *kernemu; in vmmdev_machdep_ioctl() local
367 kernemu = (void *)data; in vmmdev_machdep_ioctl()
369 if (kernemu->access_width > 0) in vmmdev_machdep_ioctl()
370 size = (1u << kernemu->access_width); in vmmdev_machdep_ioctl()
374 if (kernemu->gpa >= DEFAULT_APIC_BASE && in vmmdev_machdep_ioctl()
375 kernemu->gpa < DEFAULT_APIC_BASE + PAGE_SIZE) { in vmmdev_machdep_ioctl()
378 } else if (kernemu->gpa >= VIOAPIC_BASE && in vmmdev_machdep_ioctl()
379 kernemu->gpa < VIOAPIC_BASE + VIOAPIC_SIZE) { in vmmdev_machdep_ioctl()
382 } else if (kernemu->gpa >= VHPET_BASE && in vmmdev_machdep_ioctl()
383 kernemu->gpa < VHPET_BASE + VHPET_SIZE) { in vmmdev_machdep_ioctl()
392 error = mwrite(vcpu, kernemu->gpa, in vmmdev_machdep_ioctl()
393 kernemu->value, size, &arg); in vmmdev_machdep_ioctl()
395 error = mread(vcpu, kernemu->gpa, in vmmdev_machdep_ioctl()
396 &kernemu->value, size, &arg); in vmmdev_machdep_ioctl()