Re: Can bhyve pass disk vendor, model and serial values to guests?

2020-08-10 Thread Wanpeng Qian
VENDOR as ATA. Unfortunately, when there is a space in the command line, bhyve will not parse correctly. We have to figure out how to solve this problem. On Mon, Jul 27, 2020 at 11:27 AM Wanpeng Qian wrote: > > Hi Rob > > >linux_in_bhyve# lsblk --output vendor,model,serial /dev/

Re: Can bhyve pass disk vendor, model and serial values to guests?

2020-07-26 Thread Wanpeng Qian
(did it work on VMware?) BTW: your vm-bhyve config can be improved by these. disk1_type="ahci-hd" disk1_name="/dev/da4" disk1_dev="custom" disk1_opts="ser=410109,model=OPEN-V-CM"" Regards. Qian On Sat, Jul 25, 2020 at 9:23 AM Rob Roy Gregg wrote:

Re: bhyve, Windows guest and trim support

2020-07-06 Thread Wanpeng Qian
I also recommend NVMe controller, it supports Deallocate(in SATA, it is called TRIM.) chuck has committed a lot of patches to NVMe controller in 13.0 Current. Just install 12.1-STABLE, fetch pci_nvme.c from 13.0 Current, recompile bhyve. It works great. stable/fast. On Tue, Jul 7, 2020 at 6:40 AM

Re: Can bhyve pass disk vendor, model and serial values to guests?

2020-06-19 Thread Wanpeng Qian
Hi Gregg There is a patch for this, but you have to apply manually for 12.1R You can get it here https://reviews.freebsd.org/D24174 2020年6月20日(土) 8:23 Rob Roy Gregg : > > FreeBSD Friends, > > I tried the forums and thought I'd ask here next; here's the thread: > > > https://forums.freebsd.org/

Re: bhyve: passthrough SMART info from host nvme controller

2020-03-20 Thread Wanpeng Qian
return that info when guest query SMART. so it will not update all the time. This way, guest application that depended on SMART Info will benefit from this fix. On Sat, Mar 21, 2020 at 9:49 AM John-Mark Gurney wrote: > > Wanpeng Qian wrote this message on Thu, Mar 19, 2020 at 12:09 +0900: &

bhyve: TRIM support in AHCI controller

2020-03-19 Thread Wanpeng Qian
Hi all I found the output of diskinfo inside VM of AHCI disk as follow, no TRIM support. root@smart:~ # diskinfo -v ada0 ada0 512 # sectorsize 21474836480 # mediasize in bytes (20G) 41943040# mediasize in sectors 131072 # stripesize 0# stripeoffset 41610# Cyl

Re: bhyve: passthrough SMART info from host nvme controller

2020-03-18 Thread Wanpeng Qian
real world has all kinds of requirements. if you provide more, more people using it. On Thu, Mar 19, 2020 at 12:58 PM Jason Tubnor wrote: > > > > On Thu, 19 Mar 2020 at 14:09, Wanpeng Qian wrote: >> >> > Can't you do what something like pci_passthru.c does in passthr

Re: bhyve: passthrough SMART info from host nvme controller

2020-03-18 Thread Wanpeng Qian
then close /dev/nvme0. On Thu, Mar 19, 2020 at 2:59 AM John-Mark Gurney wrote: > > Wanpeng Qian wrote this message on Wed, Mar 18, 2020 at 13:05 +0900: > > But currently bhyve has Capsicum capability, I cannot > > open /dev/nvme0 within pci_nvme.c without extra code. > > (cu

Re: bhyve: passthrough SMART info from host nvme controller

2020-03-18 Thread Wanpeng Qian
s to know about an implementation detail of the > host hardware. > > If the host hardware is failing, that's something to be fixed on the host. > The guest should never realize that something was broken. > > Just my opinion. > > > ‐‐‐ Original Message ‐‐‐ > On

bhyve: passthrough SMART info from host nvme controller

2020-03-17 Thread Wanpeng Qian
Hello all. I have an idea about provide SMART of nvme controller. Currently bhyve's nvme controller didn't provide any SMART information. if we provide fake SMART, that is meaningless. I am thinking we can read the host nvme controller SMART and provide that to guest. such as nvme,disk1.img,ma

Re: bhyve: Passthru second port of i350-T2 to Windows cause system crash.

2020-03-16 Thread Wanpeng Qian
I found a commit relate to VT-d, I will try this patch first. https://reviews.freebsd.org/rS349184 On Mon, Mar 16, 2020 at 2:33 PM Wanpeng Qian wrote: > > Hello all > > I am using FreeBSD 12.1R + patch > https://reviews.freebsd.org/D20531 > > Without D20531 patch, I can pas

bhyve: Passthru second port of i350-T2 to Windows cause system crash.

2020-03-15 Thread Wanpeng Qian
Hello all I am using FreeBSD 12.1R + patch https://reviews.freebsd.org/D20531 Without D20531 patch, I can passthru this first port of i350-T2 to a Linux vm. and with the Patch, I can passthough the second port to A windows VM. it works. about several minutes later, system crash. I reset the seve

Re: Passthru a VF to Windows guest cause BSOD, chelsio T520BT, SR-IOV

2020-03-12 Thread Wanpeng Qian
Hi Peter > Can you try disabling APIC acceleration (which should be available on > that Xeon E5) ? This can be done on the fly using kenv and > unloading/reloading vmm.ko (or loader.conf and rebooting) After disabling tpr_shadowing, the Windows 10 1909 client boots without the IRQL_NOT_LESS_OR_