summaryrefslogtreecommitdiffstats
path: root/sys/amd64/vmm/vmm_stat.c
Commit message (Collapse)AuthorAgeFilesLines
* Expose the amount of resident and wired memory from the guest's vmspace.grehan2014-06-251-2/+11
| | | | | | | | | | | | | | | | | | | | | This is different than the amount shown for the process e.g. by /usr/bin/top - that is the mappings faulted in by the mmap'd region of guest memory. The values can be fetched with bhyvectl # bhyvectl --get-stats --vm=myvm ... Resident memory 413749248 Wired memory 0 ... vmm_stat.[ch] - Modify the counter code in bhyve to allow direct setting of a counter as opposed to incrementing, and providing a callback to fetch a counter's value. Reviewed by: neel
* Add ioctl(VM_REINIT) to reinitialize the virtual machine state maintainedneel2014-06-071-5/+11
| | | | | | | by vmm.ko. This allows the virtual machine to be restarted without having to destroy it first. Reviewed by: grehan
* Add a counter to differentiate between VM-exits due to nested paging faultsneel2014-02-081-1/+2
| | | | and instruction emulation faults.
* Handle a VM-exit due to a NMI properly by vectoring to the host's NMI handlerneel2014-01-221-0/+1
| | | | | | | via a software interrupt. This is safe to do because the logical processor is already cognizant of the NMI and further NMIs are blocked until the host's NMI handler executes "iret".
* Add an API to rendezvous all active vcpus in a virtual machine. The rendezvousneel2014-01-141-0/+1
| | | | | | | | | | | | | | | can be initiated in the context of a vcpu thread or from the bhyve(8) control process. The first use of this functionality is to update the vlapic trigger-mode register when the IOAPIC pin configuration is changed. Prior to this change we would update the TMR in the virtual-APIC page at the time of interrupt delivery. But this doesn't work with Posted Interrupts because there is no way to program the EOI_exit_bitmap[] in the VMCS of the target at the time of interrupt delivery. Discussed with: grehan@
* Support array-type of stats in bhyve.neel2013-05-101-14/+36
| | | | | | | | | | | | | | | An array-type stat in vmm.ko is defined as follows: VMM_STAT_ARRAY(IPIS_SENT, VM_MAXCPU, "ipis sent to vcpu"); It is incremented as follows: vmm_stat_array_incr(vm, vcpuid, IPIS_SENT, array_index, 1); And output of 'bhyvectl --get-stats' looks like: ipis sent to vcpu[0] 3114 ipis sent to vcpu[1] 0 Reviewed by: grehan Obtained from: NetApp
* Add some more stats to keep track of all the reasons that a vcpu is exiting.neel2013-03-301-0/+13
|
* Allow vmm stats to be specific to the underlying hardware assist technology.neel2013-03-161-0/+13
| | | | | | | | | This can be done by using the new macros VMM_STAT_INTEL() and VMM_STAT_AMD(). Statistic counters that are common across the two are defined using VMM_STAT(). Suggested by: Anish Gupta Discussed with: grehan Obtained from: NetApp
* IFC @ r222830grehan2011-06-281-0/+1
|
* Import of bhyve hypervisor and utilities, part 1.grehan2011-05-131-0/+103
vmm.ko - kernel module for VT-x, VT-d and hypervisor control bhyve - user-space sequencer and i/o emulation vmmctl - dump of hypervisor register state libvmm - front-end to vmm.ko chardev interface bhyve was designed and implemented by Neel Natu. Thanks to the following folk from NetApp who helped to make this available: Joe CaraDonna Peter Snyder Jeff Heller Sandeep Mann Steve Miller Brian Pawlowski
OpenPOWER on IntegriCloud