Re: freebsd-virtualization Digest, Vol 449, Issue 1

2019-07-02 Thread Oleg Ginzburg
On Tue, Jul 2, 2019 at 3:00 PM
 wrote:
> Message: 1
> Date: Tue, 2 Jul 2019 00:52:04 -0600
> From: The Doctor 
> To: freebsd-virtualization@freebsd.org
> Subject: Debian 10, Current Kali and Current Parrot
> Message-ID: <20190702065204.ga63...@doctor.nl2k.ab.ca>
> Content-Type: text/plain; charset=us-ascii
>
> Looks like Deb 10 uses a new grpahical driver that breaks bhyve.
>
> Same with Kali and PArrot.
>
> I have been able to get around Kali and Deb 10 via predefining the network,
>
> which does not work with Parrot.
>
> Anyone on top of this?
> --

This behavior is related to the Xorg xf86-video-vesa driver, not fb.
Vesa driver expects for a specific device class:

#ifdef XSERVER_LIBPCIACCESS
static const struct pci_id_match vesa_device_match[] = {
{
PCI_MATCH_ANY, PCI_MATCH_ANY, PCI_MATCH_ANY, PCI_MATCH_ANY,
0x0003, 0x00ff, CHIP_VESA_GENERIC
},

{ 0, 0, 0 },
};
#endif

which provides by bhyve fbuf devices ( but not working as
vesa-compatible device )
As work-around we can change pci_set_cfgdata8(pi, PCIR_CLASS, into
anything other than:

#define PCIC_DISPLAY0x03

, for example: PCIS_DISPLAY_OTHER

Work-around demo:  https://youtu.be/oZuKo87Tmg0

PS: I do not know the right solution at the moment.
___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"


bhyve: pci_passthru not working: PCI device at 5/1/0 is not using the ppt(4) driver

2019-07-02 Thread richard

Hello,

i'm trying to use pci_passthru to handover a USB interface to windows7 
running under bhyve.


window7 is running perfect under bhyve.


As this does not work i tried to pass a simple network adapter, but the 
error message is the same when starting bhyve:


    bhyve: PCI device at 5/1/0 is not using the ppt(4) driver


here the details:

uname -a:

FreeBSD main2rest2.bader.loc 11.2-RELEASE-p10 FreeBSD 11.2-RELEASE-p10 
#1 r349319: Mon Jun 24 06:27:24 CEST 2019 
r...@main2rest2.bader.loc:/usr/obj/usr/src/sys/MYKERNEL  amd64



cat /boot/loader.conf:

vmm_load="YES"
pptdevs="5/1/0"
hw.vmm.topology.threads_per_core=2
hw.vmm.topology.cores_per_package=4


pciconf -v -l:

ppt0@pci0:5:1:0:    class=0x02 card=0x813910ec chip=0x813910ec 
rev=0x10 hdr=0x00

    vendor = 'Realtek Semiconductor Co., Ltd.'
    device = 'RTL-8100/8101L/8139 PCI Fast Ethernet Adapter'
    class  = network
    subclass   = ethernet


the commandline for starting bhyve:

bhyve -S -c 7 -m 5G -w -H \
   -s 0,hostbridge\
   -s 3,ahci-cd,./empty.iso\
   -s 4,ahci-hd,./06_win7bac4.img,sectorsize=512\
   -s 5,virtio-net,tap13\
   -s 7,passthru,5/1/0\
   -s 29,fbuf,tcp=192.168.16.109:5905,w=1024,h=800\
   -s 31,lpc -l com1,stdio\
   -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd 06win7bac4


any ideas, thanks

richard


___
freebsd-virtualization@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to 
"freebsd-virtualization-unsubscr...@freebsd.org"