Author: neel
Date: Sat Apr 15 22:42:23 2017
New Revision: 316990
URL: https://svnweb.freebsd.org/changeset/base/316990
Log:
Due to time constraints remove myself as a vmm(4) maintainer.
Modified:
head/MAINTAINERS
Modified: head/MAINTAINERS
Author: neel
Date: Thu Jul 16 04:15:22 2015
New Revision: 285619
URL: https://svnweb.freebsd.org/changeset/base/285619
Log:
If uart interrupts are not functioning then schedule the callout to do the
polling at device attach time [1].
Add tunables 'debug.uart_force_poll' and 'debug.uart_po
Author: neel
Date: Mon Jul 6 19:41:43 2015
New Revision: 285218
URL: https://svnweb.freebsd.org/changeset/base/285218
Log:
Move the 'devmem' device nodes from /dev/vmm to /dev/vmm.io
Some external tools just do a 'ls /dev/vmm' to figure out the bhyve virtual
machines on the host. These t
Author: neel
Date: Mon Jul 6 19:33:29 2015
New Revision: 285217
URL: https://svnweb.freebsd.org/changeset/base/285217
Log:
Always assert DCD and DSR in bhyve's uart emulation.
The /etc/ttys entry for a serial console in FreeBSD/x86 is as follows:
ttyu0 "/usr/libexec/getty 3wire" v
Author: neel
Date: Sat Jun 27 18:24:23 2015
New Revision: 284892
URL: https://svnweb.freebsd.org/changeset/base/284892
Log:
Fix issues detected by 'mandoc -Tlint bhyveload.8'
Pointed out by: wblock
Differential Revision:https://reviews.freebsd.org/D2762
Modified:
Author: neel
Date: Tue Jun 23 02:17:23 2015
New Revision: 284712
URL: https://svnweb.freebsd.org/changeset/base/284712
Log:
Restore the host's GS.base before returning from 'svm_launch()'.
Previously this was done by the caller of 'svm_launch()' after it returned.
This works fine as long
Author: neel
Date: Mon Jun 22 00:30:34 2015
New Revision: 284688
URL: https://svnweb.freebsd.org/changeset/base/284688
Log:
Fix a regression in "movs" emulation after r284539. The regression was caused
due to a change in behavior of the 'vm_map_gpa()'.
Prior to r284539 if 'vm_map_gpa()' w
Author: neel
Date: Thu Jun 18 06:00:17 2015
New Revision: 284539
URL: https://svnweb.freebsd.org/changeset/base/284539
Log:
Restructure memory allocation in bhyve to support "devmem".
devmem is used to represent MMIO devices like the boot ROM or a VESA
framebuffer
where doing a trap-and-
Author: neel
Date: Fri Jun 5 21:22:26 2015
New Revision: 284046
URL: https://svnweb.freebsd.org/changeset/base/284046
Log:
The 'verify_gla()' function is used to ensure that the effective address
after decoding the instruction matches the one provided by hardware.
Prior to r283293 'vie->
Author: neel
Date: Thu Jun 4 02:12:23 2015
New Revision: 283973
URL: https://svnweb.freebsd.org/changeset/base/283973
Log:
Use tunable 'hw.vmm.svm.features' to disable specific SVM features even
though they might be available in hardware.
Use tunable 'hw.vmm.svm.num_asids' to limit the n
Author: neel
Date: Thu May 28 17:37:01 2015
New Revision: 283657
URL: https://svnweb.freebsd.org/changeset/base/283657
Log:
Fix non-deterministic delays when accessing a vcpu that was in "running" or
"sleeping" state. This is done by forcing the vcpu to transition to "idle"
by returning to u
Author: neel
Date: Sat May 23 01:17:50 2015
New Revision: 283308
URL: https://svnweb.freebsd.org/changeset/base/283308
Log:
Exceptions don't deliver an error code in real mode.
MFC after:1 week
Modified:
head/sys/amd64/vmm/vmm.c
Modified: head/sys/amd64/vmm/vmm.c
===
Author: neel
Date: Fri May 22 21:09:11 2015
New Revision: 283299
URL: https://svnweb.freebsd.org/changeset/base/283299
Log:
Remove the verification of instruction length after instruction decode. The
check has been bogus since r273375.
MFC after:1 week
Modified:
head/sys/amd64/vmm/
Author: neel
Date: Fri May 22 17:34:22 2015
New Revision: 283293
URL: https://svnweb.freebsd.org/changeset/base/283293
Log:
Don't rely on the 'VM-exit instruction length' field in the VMCS to always
have an accurate length on an EPT violation. This is not needed by the
instruction decoding c
Author: neel
Date: Thu May 21 18:29:11 2015
New Revision: 283256
URL: https://svnweb.freebsd.org/changeset/base/283256
Log:
Add an option "--get-vmcs-exit-inst-length" to display the instruction length
of the instruction that caused the VM-exit.
MFC after:1 week
Modified:
head/usr.
Author: neel
Date: Thu May 21 18:23:37 2015
New Revision: 283255
URL: https://svnweb.freebsd.org/changeset/base/283255
Log:
Emulate the "CMP r/m, reg" instruction (opcode 39H).
Reported and tested by: Leon Dang (ld...@nahannisys.com)
MFC after:1 week
Modified:
head/sys/amd64/
Author: neel
Date: Tue May 12 00:30:39 2015
New Revision: 282788
URL: https://svnweb.freebsd.org/changeset/base/282788
Log:
Allow configuration of the sector size advertised to the guest.
The default behavior is to infer the logical and physical sector sizes from
the block device backend.
Author: neel
Date: Thu May 7 18:35:15 2015
New Revision: 282595
URL: https://svnweb.freebsd.org/changeset/base/282595
Log:
Allow byte reads of AHCI registers.
This is needed to support Windows guests that use byte reads to access certain
AHCI registers (e.g. PxTFD.Status and PxTFD.Error)
Hi Alexander,
On Wed, May 6, 2015 at 3:00 AM, Alexander Motin wrote:
> On 06.05.2015 08:04, Neel Natu wrote:
>> Hi Alexander,
>>
>> I am getting the following error(?) messages with an ahci-cd device on
>> Centos 6.4 x86_64:
>
> Thanks for the report, r28252
Author: neel
Date: Wed May 6 23:40:24 2015
New Revision: 282571
URL: https://svnweb.freebsd.org/changeset/base/282571
Log:
Check 'td_owepreempt' and yield the vcpu thread if it is set.
This is done explicitly because a vcpu thread can be in a critical section
for the entire time slice al
Author: neel
Date: Wed May 6 16:25:20 2015
New Revision: 282558
URL: https://svnweb.freebsd.org/changeset/base/282558
Log:
Deprecate the 3-way return values from vm_gla2gpa() and vm_copy_setup().
Prior to this change both functions returned 0 for success, -1 for failure
and +1 to indicat
Author: neel
Date: Wed May 6 05:40:20 2015
New Revision: 282520
URL: https://svnweb.freebsd.org/changeset/base/282520
Log:
Do a proper emulation of guest writes to MSR_EFER.
- Must-Be-Zero bits cannot be set.
- EFER_LME and EFER_LMA should respect the long mode consistency checks.
- EFER_
Author: neel
Date: Wed May 6 05:12:29 2015
New Revision: 282519
URL: https://svnweb.freebsd.org/changeset/base/282519
Log:
Add macros for AMD-specific bits in MSR_EFER: LMSLE, FFXSR and TCE.
AMDID_FFXSR is at bit 25 so correct its value to 0x0200.
MFC after:1 week
Modified:
Hi Alexander,
I am getting the following error(?) messages with an ahci-cd device on
Centos 6.4 x86_64:
ata1.00: qc timeout (cmd 0xa0)
ata1: limiting SATA link speed to 1.5 Gbps
ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
ata1.00: irq_stat 0x4001
sr 0:0:0:0: [sr0] CDB: Ge
Author: neel
Date: Mon May 4 04:27:23 2015
New Revision: 282407
URL: https://svnweb.freebsd.org/changeset/base/282407
Log:
Emulate the 'CMP r/m8, imm8' instruction encountered when booting a Windows
Vista guest.
Reported by: Leon Dang (ld...@nahannisys.com)
MFC after:1 week
Modif
Author: neel
Date: Sat May 2 19:07:49 2015
New Revision: 282351
URL: https://svnweb.freebsd.org/changeset/base/282351
Log:
Don't advertise the Intel SMX capability to the guest.
Reported by: Leon Dang (ld...@nahannisys.com)
MFC after:1 week
Modified:
head/sys/amd64/vmm/x86.c
Mod
Author: neel
Date: Sat May 2 04:19:11 2015
New Revision: 282336
URL: https://svnweb.freebsd.org/changeset/base/282336
Log:
Emulate machine check related MSRs to allow guest OSes like Windows to boot.
Reported by: Leon Dang (ld...@nahannisys.com)
MFC after:2 weeks
Modified:
head/s
Author: neel
Date: Sat May 2 03:25:24 2015
New Revision: 282335
URL: https://svnweb.freebsd.org/changeset/base/282335
Log:
Advertise an additional memory BAR in the "dummy" device emulation.
This is useful for testing the MOVS emulation when both the source and
destination addresses are
Author: neel
Date: Fri May 1 16:00:29 2015
New Revision: 282301
URL: https://svnweb.freebsd.org/changeset/base/282301
Log:
r281630 relaxed the limits on the vectors that can be asserted in the IRRs.
Do the same when transitioning a vector from the IRR to the ISR and also
when extinguishi
Author: neel
Date: Fri May 1 05:11:14 2015
New Revision: 282296
URL: https://svnweb.freebsd.org/changeset/base/282296
Log:
Emulate MSR_SYSCFG which is accessed by Linux on AMD cpus when MTRRs are
enabled.
MFC after:2 weeks
Modified:
head/sys/amd64/vmm/amd/svm_msr.c
Modified: head
Author: neel
Date: Thu Apr 30 22:23:22 2015
New Revision: 282287
URL: https://svnweb.freebsd.org/changeset/base/282287
Log:
Don't require to be always included before .
Only a subset of source files that include need to use the
APIs that require the inclusion of .
MFC after:1 w
Author: neel
Date: Thu Apr 30 21:00:47 2015
New Revision: 282284
URL: https://svnweb.freebsd.org/changeset/base/282284
Log:
When an instruction cannot be decoded just return to userspace so bhyve(8)
can dump the instruction bytes.
Requested by: grehan
MFC after:1 week
Modified:
h
Author: neel
Date: Thu Apr 30 19:23:50 2015
New Revision: 282281
URL: https://svnweb.freebsd.org/changeset/base/282281
Log:
Advertise the MTRR feature via CPUID and emulate the minimal set of MTRR MSRs.
This is required for booting Windows guests.
Reported by: Leon Dang (ld...@nahannisys
Author: neel
Date: Wed Apr 29 23:44:28 2015
New Revision: 282259
URL: https://svnweb.freebsd.org/changeset/base/282259
Log:
Re-implement RTC current time calculation to eliminate the possibility of
losing time.
The problem with the earlier implementation was that the uptime value
used b
Author: neel
Date: Wed Apr 29 02:01:46 2015
New Revision: 282209
URL: https://svnweb.freebsd.org/changeset/base/282209
Log:
Emulate the 'bit test' instruction. Windows 7 uses 'bit test' to check the
'Delivery Status' bit in APIC ICR register.
Reported by: Leon Dang (ld...@nahannisys.com)
Author: neel
Date: Tue Apr 28 23:44:47 2015
New Revision: 282206
URL: https://svnweb.freebsd.org/changeset/base/282206
Log:
Implement the century byte in the RTC. Some guests require this field to be
properly set.
Reported by: Leon Dang (ld...@nahannisys.com)
MFC after:2 weeks
Mod
Author: neel
Date: Fri Apr 24 19:15:38 2015
New Revision: 281946
URL: https://svnweb.freebsd.org/changeset/base/281946
Log:
Don't allow guest to modify readonly bits in the PCI config 'status' register.
Reported by: Leon Dang (ld...@nahannisys.com)
MFC after:2 weeks
Modified:
head
Author: neel
Date: Thu Apr 16 22:44:51 2015
New Revision: 281630
URL: https://svnweb.freebsd.org/changeset/base/281630
Log:
Relax the check on which vectors can be delivered through the APIC. According
to the Intel SDM vectors 16 through 255 are allowed to be delivered via the
local APIC.
Author: neel
Date: Thu Apr 16 20:15:47 2015
New Revision: 281612
URL: https://svnweb.freebsd.org/changeset/base/281612
Log:
Prefer 'vcpu_should_yield()' over checking 'curthread->td_flags' directly.
MFC after:1 week
Modified:
head/sys/amd64/vmm/amd/svm.c
Modified: head/sys/amd64/vmm
Author: neel
Date: Thu Apr 16 20:11:49 2015
New Revision: 281611
URL: https://svnweb.freebsd.org/changeset/base/281611
Log:
If the number of guest vcpus is less than '1' then flag it as an error.
MFC after:1 week
Modified:
head/usr.sbin/bhyve/bhyverun.c
Modified: head/usr.sbin/bhyve
Author: neel
Date: Wed Apr 15 16:22:05 2015
New Revision: 281559
URL: https://svnweb.freebsd.org/changeset/base/281559
Log:
Fix handling of BUS_PROBE_NOWILDCARD in 'device_probe_child()'.
Device probe value of BUS_PROBE_NOWILDCARD should be treated specially only
if the device has a fixed
Author: neel
Date: Wed Apr 15 05:04:42 2015
New Revision: 281542
URL: https://svnweb.freebsd.org/changeset/base/281542
Log:
Initialize 'error' before use.
Reported by: Coverity Scan
CID: 1249748, 1249747, 1249751, 1249749
MFC after:1 week
Modified:
head/usr.sbin/bhyvect
Author: neel
Date: Mon Apr 13 19:13:51 2015
New Revision: 281499
URL: https://svnweb.freebsd.org/changeset/base/281499
Log:
Modify the return value of the uhci/ehci/xhci PCI probe routines to
'BUS_PROBE_DEFAULT'. This allows bhyve's 'ppt' driver to claim ownership
of the device and pass it t
Hi Christian,
On Sun, Apr 5, 2015 at 12:06 PM, Christian Laursen wrote:
> On 10/03/14 19:27, Peter Grehan wrote:
>>
>> Author: grehan
>> Date: Fri Oct 3 17:27:30 2014
>> New Revision: 272481
>> URL: https://svnweb.freebsd.org/changeset/base/272481
>>
>> Log:
>>Add new fields in the FADT, req
Author: neel
Date: Sat Mar 28 02:55:16 2015
New Revision: 280775
URL: https://svnweb.freebsd.org/changeset/base/280775
Log:
Fix the RTC device model to operate correctly in 12-hour mode. The following
table documents the values in the RTC 'hour' field in the two modes:
Hour-of-the-day
Author: neel
Date: Sat Mar 14 02:32:08 2015
New Revision: 279971
URL: https://svnweb.freebsd.org/changeset/base/279971
Log:
Use lapic_ipi_alloc() to dynamically allocate IPI slots needed by bhyve when
vmm.ko is loaded.
Also relocate the 'justreturn' IPI handler to be alongside all other h
Author: neel
Date: Sat Mar 14 00:30:41 2015
New Revision: 279970
URL: https://svnweb.freebsd.org/changeset/base/279970
Log:
Add x86 specific APIs 'lapic_ipi_alloc()' and 'lapic_ipi_free()' to allow IPI
vectors to be dynamically allocated. This allows kernel modules like vmm.ko
to allocate un
Hi Davide,
On Mon, Mar 2, 2015 at 12:26 PM, Davide Italiano wrote:
> On Mon, Mar 2, 2015 at 12:05 PM, John-Mark Gurney wrote:
>> Author: jmg
>> Date: Mon Mar 2 20:05:16 2015
>> New Revision: 279539
>> URL: https://svnweb.freebsd.org/changeset/base/279539
>>
>> Log:
>> give others fair warning
Author: neel
Date: Mon Mar 2 20:13:49 2015
New Revision: 279540
URL: https://svnweb.freebsd.org/changeset/base/279540
Log:
Fix warnings/errors when building vmm.ko with gcc:
- fix warning about comparison of 'uint8_t v_tpr >= 0' always being true.
- fix error triggered by an empty clo
Author: neel
Date: Sun Mar 1 02:31:27 2015
New Revision: 279468
URL: https://svnweb.freebsd.org/changeset/base/279468
Log:
Free up the IPI slot used by IPI_STOP_HARD.
Change the numeric value of IPI_STOP_HARD so it doesn't occupy a valid IPI
slot. This can be done because IPI_STOP_HARD i
Author: neel
Date: Tue Feb 24 05:35:15 2015
New Revision: 279228
URL: https://svnweb.freebsd.org/changeset/base/279228
Log:
Always emulate MSR_PAT on Intel processors and don't rely on PAT save/restore
capability of VT-x. This lets bhyve run nested in older VMware versions that
don't support
Author: neel
Date: Tue Feb 24 05:15:40 2015
New Revision: 279227
URL: https://svnweb.freebsd.org/changeset/base/279227
Log:
Emulate MSR 0xC0011024 when running on AMD processors.
OpenBSD guests test bit 0 of this MSR to detect whether the workaround for
erratum 721 has been applied.
Author: neel
Date: Tue Feb 24 02:04:16 2015
New Revision: 279225
URL: https://svnweb.freebsd.org/changeset/base/279225
Log:
Add "-u" option to bhyve(8) to indicate that the RTC should maintain UTC time.
The default remains localtime for compatibility with the original device model
in bhyv
Author: neel
Date: Sat Jan 24 00:35:49 2015
New Revision: 277626
URL: https://svnweb.freebsd.org/changeset/base/277626
Log:
Add macro to identify AVIC capability (advanced virtual interrupt controller)
in AMD processors.
Submitted by: Dmitry Luhtionov (dmitryluhtio...@gmail.com)
Modified
Author: neel
Date: Tue Jan 20 03:54:30 2015
New Revision: 277406
URL: https://svnweb.freebsd.org/changeset/base/277406
Log:
Update the vdso timehands only via tc_windup().
Prior to this change CLOCK_MONOTONIC could go backwards when the timecounter
hardware was changed via 'sysctl kern.ti
Author: neel
Date: Mon Jan 19 06:53:31 2015
New Revision: 277360
URL: https://svnweb.freebsd.org/changeset/base/277360
Log:
MOVS instruction emulation.
These instructions are emitted by 'bus_space_read_region()' when accessing
MMIO regions.
Since MOVS can be used with a repeat prefix
Author: neel
Date: Mon Jan 19 06:51:04 2015
New Revision: 277359
URL: https://svnweb.freebsd.org/changeset/base/277359
Log:
Fix a bug in libvmmapi 'vm_copy_setup()' where it would return success even if
the 'gpa' was in the guest MMIO region. This would manifest as a segmentation
fault in 'v
Author: neel
Date: Sun Jan 18 03:08:30 2015
New Revision: 277310
URL: https://svnweb.freebsd.org/changeset/base/277310
Log:
Simplify instruction restart logic in bhyve.
Keep track of the next instruction to be executed by the vcpu as 'nextrip'.
As a result the VM_RUN ioctl no longer takes
Author: neel
Date: Sun Jan 18 01:50:10 2015
New Revision: 277309
URL: https://svnweb.freebsd.org/changeset/base/277309
Log:
Make the error message explicit instead of just printing the usage if the
virtual machine name is not specified.
Requested by: grehan
MFC after:1 week
Modifie
Author: neel
Date: Wed Jan 14 07:18:51 2015
New Revision: 277168
URL: https://svnweb.freebsd.org/changeset/base/277168
Log:
Fix typo (missing comma).
MFC after:3 days
Modified:
head/sys/amd64/vmm/vmm_ioport.c
Modified: head/sys/amd64/vmm/vmm_ioport.c
Author: neel
Date: Tue Jan 13 22:00:47 2015
New Revision: 277149
URL: https://svnweb.freebsd.org/changeset/base/277149
Log:
'struct vm_exception' was intended to be used only as the collateral for the
VM_INJECT_EXCEPTION ioctl. However it morphed into other uses like keeping
track pending ex
Author: neel
Date: Tue Jan 6 19:04:02 2015
New Revision: 276763
URL: https://svnweb.freebsd.org/changeset/base/276763
Log:
Clear blocking due to STI or MOV SS in the hypervisor when an instruction is
emulated or when the vcpu incurs an exception. This matches the CPU behavior.
Remove spe
Author: neel
Date: Tue Dec 30 23:38:31 2014
New Revision: 276432
URL: https://svnweb.freebsd.org/changeset/base/276432
Log:
Initialize all fields of 'struct vm_exception exception' before passing it to
vm_inject_exception(). This fixes the issue that 'exception.cpuid' is
uninitialized when c
* bit explicitly.
+*/
+ vhpet->config &= ~HPET_CNF_LEG_RT;
+
if ((oldval ^ vhpet->config) & HPET_CNF_ENABLE) {
if (vhpet_counter_enabled(vhpet)) {
vhpet_start_counting(vhpet);
Added: head/sys/amd64/vmm/io/vrt
Author: neel
Date: Tue Dec 30 07:08:30 2014
New Revision: 276402
URL: https://svnweb.freebsd.org/changeset/base/276402
Log:
Remove "svn:mergeinfo" property that was dragged along when these files were
svn copied in r273375.
Suggested by: ngie, gjb
Modified:
Directory Properties:
head/s
Author: neel
Date: Tue Dec 30 02:44:33 2014
New Revision: 276392
URL: https://svnweb.freebsd.org/changeset/base/276392
Log:
Inject #UD into the guest when it executes either 'MONITOR' or 'MWAIT' on
an AMD/SVM host.
MFC after:1 week
Modified:
head/sys/amd64/vmm/amd/svm.c
head/sys/
Author: neel
Date: Sun Dec 28 00:53:52 2014
New Revision: 276323
URL: https://svnweb.freebsd.org/changeset/base/276323
Log:
Implement "special mask mode" in vatpic.
OpenBSD guests always enable "special mask mode" during boot. As a result of
r275952 this is flagged as an error and the gue
Author: neel
Date: Tue Dec 23 02:14:49 2014
New Revision: 276098
URL: https://svnweb.freebsd.org/changeset/base/276098
Log:
Allow ktr(4) tracing of all guest exceptions via the tunable
"hw.vmm.trace_guest_exceptions". To enable this feature set the tunable
to "1" before loading vmm.ko.
Author: neel
Date: Sat Dec 20 19:47:51 2014
New Revision: 275965
URL: https://svnweb.freebsd.org/changeset/base/275965
Log:
Emulate writes to the IA32_MISC_ENABLE MSR.
PR: 196093
Reported by: db
Tested by:db
Discussed with: grehan
MFC after:1 week
Modified:
Author: neel
Date: Sat Dec 20 04:57:45 2014
New Revision: 275952
URL: https://svnweb.freebsd.org/changeset/base/275952
Log:
Various 8259 device model improvements:
- implement 8259 "polled" mode.
- set 'atpic->sfn' if bit 4 in ICW4 is set during master initialization.
- report error if
Author: neel
Date: Wed Dec 17 03:04:43 2014
New Revision: 275850
URL: https://svnweb.freebsd.org/changeset/base/275850
Log:
Fix 8259 IRQ priority resolver.
Initialize the 8259 such that IRQ7 is the lowest priority.
Reviewed by: tychon
Differential Revision:https://revie
Author: neel
Date: Tue Dec 16 06:33:57 2014
New Revision: 275817
URL: https://svnweb.freebsd.org/changeset/base/275817
Log:
For level triggered interrupts clear the PIC IRR bit when the interrupt pin
is deasserted. Prior to this change each assertion on a level triggered irq
pin resulted in
Author: neel
Date: Sun Oct 26 21:17:44 2014
New Revision: 273710
URL: https://svnweb.freebsd.org/changeset/base/273710
Log:
Add a comment explaining the intent behind the I/O reservation [0x72-0x77].
Modified:
head/usr.sbin/bhyve/rtc.c
Modified: head/usr.sbin/bhyve/rtc.c
Author: neel
Date: Sun Oct 26 19:03:06 2014
New Revision: 273706
URL: https://svnweb.freebsd.org/changeset/base/273706
Log:
Change the type of the first argument to the I/O emulation handlers to
'struct vm *'. Previously it used to be a 'void *' but there is no reason
to hide the actual type
sys/amd64/vmm/io/vpmtmr.c
==
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sys/amd64/vmm/io/vpmtmr.c Sun Oct 26 04:44:28 2014
(r273683)
@@ -0,0 +1,104 @@
+/*-
+ * Copyright (c) 2014, Neel Natu (n...@fr
Author: neel
Date: Sun Oct 26 03:03:41 2014
New Revision: 273666
URL: https://svnweb.freebsd.org/changeset/base/273666
Log:
Don't pass the 'error' return from an I/O port handler directly to vm_run().
Most I/O port handlers return -1 to signal an error. If this value is returned
without m
Author: neel
Date: Tue Oct 21 07:10:43 2014
New Revision: 273375
URL: https://svnweb.freebsd.org/changeset/base/273375
Log:
Merge projects/bhyve_svm into HEAD.
After this change bhyve supports AMD processors with the SVM/AMD-V hardware
extensions.
More details available here:
http
Author: neel
Date: Tue Oct 21 01:06:58 2014
New Revision: 273356
URL: https://svnweb.freebsd.org/changeset/base/273356
Log:
Fix a race in pmap_emulate_accessed_dirty() that could trigger a EPT
misconfiguration VM-exit.
An EPT misconfiguration is triggered when the processor encounters a P
Author: neel
Date: Mon Oct 20 18:09:33 2014
New Revision: 273338
URL: https://svnweb.freebsd.org/changeset/base/273338
Log:
Merge from projects/bhyve_svm all the changes outside vmm.ko or bhyve
utilities:
Add support for AMD's nested page tables in pmap.c:
- Provide the correct bit mask
Author: neel
Date: Tue Oct 14 21:02:33 2014
New Revision: 273108
URL: https://svnweb.freebsd.org/changeset/base/273108
Log:
Emulate "POP r/m".
This is needed to boot OpenBSD/i386 MP kernel in bhyve.
Reported by: grehan
MFC after:1 week
Modified:
head/sys/amd64/vmm/vmm_instruc
Author: neel
Date: Tue Oct 14 18:34:15 2014
New Revision: 273102
URL: https://svnweb.freebsd.org/changeset/base/273102
Log:
Use '-e' to check if the virtio backing file has already been created.
The '-f' check works fine on a regular file but not if the backing file is
a device (e.g., /de
Author: neel
Date: Thu Oct 9 19:13:33 2014
New Revision: 272839
URL: https://svnweb.freebsd.org/changeset/base/272839
Log:
Support Intel-specific MSRs that are accessed when booting up a linux in
bhyve:
- MSR_PLATFORM_INFO
- MSR_TURBO_RATIO_LIMITx
- MSR_RAPL_POWER_UNIT
Reviewed by:
Author: neel
Date: Thu Oct 9 19:02:32 2014
New Revision: 272838
URL: https://svnweb.freebsd.org/changeset/base/272838
Log:
iasl(8) expects integer fields in data tables to be specified as hexadecimal
values. Therefore the bit width of the "PM Timer Block" was actually being
interpreted as 5
Author: neel
Date: Tue Oct 7 17:08:53 2014
New Revision: 272710
URL: https://svnweb.freebsd.org/changeset/base/272710
Log:
Implement the FLUSH operation in the virtio-block emulation.
This gets rid of the following error message during FreeBSD guest bootup:
"vtbd0: hard error cmd=flush f
Author: neel
Date: Mon Oct 6 20:48:01 2014
New Revision: 272670
URL: https://svnweb.freebsd.org/changeset/base/272670
Log:
Inject #UD into the guest when it executes either 'MONITOR' or 'MWAIT'.
The hypervisor hides the MONITOR/MWAIT capability by unconditionally setting
CPUID.01H:ECX[3]
Author: neel
Date: Thu Oct 2 05:32:29 2014
New Revision: 272395
URL: https://svnweb.freebsd.org/changeset/base/272395
Log:
Get rid of code that dealt with the hardware not being able to save/restore
the PAT MSR on guest exit/entry. This workaround was done for a beta release
of VMware Fusio
Hi,
On Sun, Sep 28, 2014 at 2:25 PM, Garrett Cooper wrote:
> Hi Neel!
> Thank you for fixing this. I think we've run into similar issues with
> customizations to the tty code at Isilon. I have one comment...
> Thanks!
>
Happy to help.
>> On Sep 28, 2014,
Author: neel
Date: Sun Sep 28 21:12:23 2014
New Revision: 272270
URL: http://svnweb.freebsd.org/changeset/base/272270
Log:
tty_rel_free() can be called more than once for the same tty so make sure
that the tty is dequeued from 'tty_list' only the first time.
The panic below was seen when
Author: neel
Date: Sat Sep 27 03:43:49 2014
New Revision: 272197
URL: http://svnweb.freebsd.org/changeset/base/272197
Log:
After r271635 mmap(2) requires either MAP_PRIVATE or MAP_SHARED
for non-anonymous mappings.
This gets 'bhyvectl --get-all' working again.
Reported by: Anish Gup
Author: neel
Date: Sat Sep 20 05:13:03 2014
New Revision: 271891
URL: http://svnweb.freebsd.org/changeset/base/271891
Log:
Add some more KTR events to help debugging.
Modified:
head/sys/amd64/vmm/io/vlapic.c
head/sys/amd64/vmm/vmm.c
Modified: head/sys/amd64/vmm/io/vlapic.c
Author: neel
Date: Sat Sep 20 05:12:34 2014
New Revision: 271890
URL: http://svnweb.freebsd.org/changeset/base/271890
Log:
MSR_KGSBASE is no longer saved and restored from the guest MSR save area. This
behavior was changed in r271888 so update the comment block to reflect this.
MSR_KGSBAS
Author: neel
Date: Sat Sep 20 02:35:21 2014
New Revision: 271888
URL: http://svnweb.freebsd.org/changeset/base/271888
Log:
Restructure the MSR handling so it is entirely handled by processor-specific
code. There are only a handful of MSRs common between the two so there isn't
too much duplic
Author: neel
Date: Fri Sep 12 06:15:20 2014
New Revision: 271451
URL: http://svnweb.freebsd.org/changeset/base/271451
Log:
Optimize the common case of injecting an interrupt into a vcpu after a HLT
by explicitly moving it out of the interrupt shadow. The hypervisor is done
"executing" the HL
Author: neel
Date: Thu Sep 11 21:15:20 2014
New Revision: 271439
URL: http://svnweb.freebsd.org/changeset/base/271439
Log:
Initialize 'bc_rdonly' to the right value.
Note that independent of this change a readonly disk file would still be
opened O_RDONLY and protected from writes by the g
Author: neel
Date: Sat Aug 30 19:59:42 2014
New Revision: 270857
URL: http://svnweb.freebsd.org/changeset/base/270857
Log:
The "SUB" instruction used in getcc() actually does 'x -= y' so use the
proper constraint for 'x'. The "+r" constraint indicates that 'x' is an
input and output register
Author: neel
Date: Sat Aug 30 18:35:16 2014
New Revision: 270855
URL: http://svnweb.freebsd.org/changeset/base/270855
Log:
Set the 'inst_length' to '0' early on before any error conditions are detected
in the emulation of the task switch. If any exceptions are triggered then the
guest %rip s
Author: neel
Date: Sun Aug 24 01:10:06 2014
New Revision: 270437
URL: http://svnweb.freebsd.org/changeset/base/270437
Log:
Add "hw.vmm.topology.threads_per_core" and "hw.vmm.topology.cores_per_package"
tunables to modify the default cpu topology advertised by bhyve.
Also add a tunable "hw
Author: neel
Date: Sat Aug 23 22:44:31 2014
New Revision: 270436
URL: http://svnweb.freebsd.org/changeset/base/270436
Log:
Fix a bug in the emulation of CPUID leaf 0x4 where bhyve was claiming that
the vcpu had no caches at all. This causes problems when executing
applications
in the guest
Author: neel
Date: Sat Aug 23 21:16:26 2014
New Revision: 270434
URL: http://svnweb.freebsd.org/changeset/base/270434
Log:
Return the spurious interrupt vector (IRQ7 or IRQ15) if the atpic cannot
find any unmasked pin with an interrupt asserted.
Reviewed by: tychon
CR: https:
Hi Warner,
On Fri, Aug 22, 2014 at 6:13 AM, Warner Losh wrote:
>
> On Aug 21, 2014, at 11:58 PM, Neel Natu wrote:
>
>> Hi Warner,
>>
>> On Thu, Aug 21, 2014 at 10:34 PM, Warner Losh wrote:
>>>
>>> On Aug 21, 2014, at 10:31 PM, Neel Natu wrote:
1 - 100 of 392 matches
Mail list logo