| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
|
|
|
| |
Makes reset code a little simpler. ok mlarkin@
|
|
|
|
| |
ok mlarkin@
|
|
|
|
|
|
| |
forthcoming emulated interrupt controller.
ok stefan
|
|
|
|
|
|
| |
They are not needed anymore now that guest memory is allocated
by and shared with the host.
ok mlarkin@
|
|
|
|
|
|
|
|
|
|
| |
vmm(4) then maps the pages allocated by the vmd(8) user process into the
address space of the guest. This gives vmm(4) and vmd(8) a shared view of
the guest RAM. This will allow us to have faster guest<->host data
exchange by ordinary memory loads/stores later, as well as remove the
vm_readpage and vm_writepage ioctls next.
ok mlarkin@
|
| |
|
|
|
|
| |
number.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Kernel bits:
- When creating a VM, a list of memory ranges has to be specified,
similar to the BIOS memory map. This is necessary for VMs with
RAM sizes approaching 4G because we'll need PCI MMIO space in
the higher parts of the 32 bit address space.
vmctl and vmd bits:
- Construct appropriate memory ranges to create a VM with a given
RAM size
- Construct a corresponding BIOS memory map from the memory ranges
and update the boot params page accordingly.
- Make sure that all variables that represent guest physical addresses
match the address width of the target CPU instead of using uint32_t.
- Fix some integer promotion glitches that actually restricted VM
RAM size to 2G.
This changes the VM create ioctl interface, so update your kernel,
vmd, and vmctl.
ok mlarkin@
|
|
|
|
|
|
| |
conversion function in vmm.c
Increase the size of the pending interrupt field from uint8_t to uint16_t.
|
|
|
|
|
|
| |
controller work in vmd(8).
ok stefan@, mpi@
|
|
|
|
|
|
|
|
|
|
|
|
| |
hardcoding it. Be careful to obey VMX's must-be-0 and must-be-1
restrictions for CR0.
This gives us the opportunity later to start VCPUs in real-mode, etc.
(for those CPUs that support unrestricted guest).
Be sure to update your vmd(8) also, the ioctl interface has
changed.
ok mlarkin@, deraadt@
|
|
|
|
|
|
|
|
|
|
|
|
| |
This should fix some of the odd termination errors people have been seeing
(vmctl status showing running VMs after they have exited/crashed, and
invalid instruction panics on vmptrld during certain races)
This diff also implements dropping the biglock when running a VCPU, and
reacquiring the lock as needed based on the type of exit (normal vs.
external interrupt)
diff supplied by Stefan Kempf <sn.kempf at t-online.de>, many thanks!
|
|
|
|
|
|
|
| |
decision as to how the vcpu should be set up for initial start and
reset. Also removes some hardcoded register constants from vmm(4).
ok jsing@, mpi@
|
|
|
|
|
|
| |
later).
discussed with deraadt@ and reyk@ at length.
|
|
|
|
| |
ok reyk@, beck@, mpi@
|
|
|
|
|
|
|
|
|
| |
last VM is terminated. This allows to remove the explicit "vmm
enable" / "vmm disable" (VMM_IOC_START / VMM_IOC_STOP) ioctls. You'll
have to update kernel and userland for this change, as the kernel ABI
changes.
OK mpi@ mlarkin@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Add $OpenBSD$ tag,
- constify "struct cfattach",
- Use <uvm/uvm_extern.h> rather than <uvm/uvm.h>, it's enough.
- Keep the "struct vm" private. This allows us to not pull <uvm/uvm_extern.h>
in <macine/vmmvar.h>
- Prefer DPRINTF() for debug macro as dprintf(3) is a standard function name.
- Add vmm_debug and fix VMM_DEBUG build
- Remove unneeded <sys/rwlock.h> from <machine/vmmvar.h>
- Kill whitespaces
ok mlarkin@
|
|
circulated on hackers@, no objections. Disabled by default.
|