Re: bhyve coredump on 11.0-ALPHA6

2016-07-11 Thread Lars Engels
On Sat, Jul 09, 2016 at 02:46:32PM -0700, Peter Grehan wrote:
> > Yes, without that line it boots. But the vnc cursor speed does not match
> > the host cursor speed.
> 
>   That's the classic problem with VNC - most o/s's implement cursor 
> acceleration, while VNC only reports absolute cursor position, and the 
> ps2 mouse only reports relative cursor position :(
> 
>   The advantage of the usb tablet is that it reports absolute position, 
> so the VNC and rendered cursor are identical. Agitate on FreeBSD support 
> for that :)

I know. Now if someone could implement this... ;-)


pgp2ggz4W3OJF.pgp
Description: PGP signature


Re: bhyve coredump on 11.0-ALPHA6

2016-07-09 Thread Peter Grehan

Yes, without that line it boots. But the vnc cursor speed does not match
the host cursor speed.


 That's the classic problem with VNC - most o/s's implement cursor 
acceleration, while VNC only reports absolute cursor position, and the 
ps2 mouse only reports relative cursor position :(


 The advantage of the usb tablet is that it reports absolute position, 
so the VNC and rendered cursor are identical. Agitate on FreeBSD support 
for that :)


later,

Peter.

___
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"


Re: bhyve coredump on 11.0-ALPHA6

2016-07-09 Thread Lars Engels
On Sat, Jul 09, 2016 at 01:54:18PM -0700, Peter Grehan wrote:
> Hi Lars,
> 
> > Found the problematic argument:
> >
> >> -s 30,xhci \
> >
> > I removed ",tablet" from that line. But I guess bhyve should better not
> > segfault but give an error message.
> 
>   Yes, that can be added.
> 
>   Not sure if the tablet works on FreeBSD though - you may have to drop 
> that config line and fall back to the ps2 mouse.

Yes, without that line it boots. But the vnc cursor speed does not match
the host cursor speed.


pgp2u75Z139rD.pgp
Description: PGP signature


Re: bhyve coredump on 11.0-ALPHA6

2016-07-09 Thread Peter Grehan

Hi Lars,


Found the problematic argument:


-s 30,xhci \


I removed ",tablet" from that line. But I guess bhyve should better not
segfault but give an error message.


 Yes, that can be added.

 Not sure if the tablet works on FreeBSD though - you may have to drop 
that config line and fall back to the ps2 mouse.


later,

Peter.

___
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"


Re: bhyve coredump on 11.0-ALPHA6

2016-07-09 Thread Lars Engels
On Sat, Jul 09, 2016 at 10:22:57PM +0200, Lars Engels wrote:
> 
[..]
Found the problematic argument:

> -s 30,xhci \

I removed ",tablet" from that line. But I guess bhyve should better not
segfault but give an error message.




pgpSx7pi0_qwp.pgp
Description: PGP signature


bhyve coredump on 11.0-ALPHA6

2016-07-09 Thread Lars Engels
I wanted to give TrueOS Desktop a try using the new GOP bhyve.
When I start the virtual machine and connect with tightvnc bhyve
crashes:

/bhyve/TrueOSDesktop > gdb /usr/sbin/bhyve bhyve.core

Core was generated by `bhyve'.
Program terminated with signal 11, Segmentation fault.

#0  0x0042c41e in pci_xhci_reset_slot (sc=0x801b3c000, slot=1) at 
/usr/src/usr.sbin/bhyve/pci_xhci.c:707
707 dev = XHCI_SLOTDEV_PTR(sc, slot);
(gdb) bt full
#0  0x0042c41e in pci_xhci_reset_slot (sc=0x801b3c000, slot=1) at 
/usr/src/usr.sbin/bhyve/pci_xhci.c:707
dev = (struct pci_xhci_dev_emu *) 0x0
#1  0x0042a693 in pci_xhci_reset (sc=0x801b3c000) at 
/usr/src/usr.sbin/bhyve/pci_xhci.c:359
i = 1
#2  0x00429c91 in pci_xhci_init (ctx=0x801a1b080, pi=0x801a42c80, 
opts=0x0) at /usr/src/usr.sbin/bhyve/pci_xhci.c:2779
sc = (struct pci_xhci_softc *) 0x801b3c000
error = 0
#3  0x0041c28b in pci_emul_init (ctx=0x801a1b080, pde=0x654f90, bus=0, 
slot=30, func=0, fi=0x801a21c70) at /usr/src/usr.sbin/bhyve/pci_emul.c:749
pdi = (struct pci_devinst *) 0x801a42c80
err = 0
#4  0x0041bd49 in init_pci (ctx=0x801a1b080) at 
/usr/src/usr.sbin/bhyve/pci_emul.c:1109
mr = {name = 0x9 , flags = 9, handler = 
0x650bf36715e07822, arg1 = 0x0, arg2 = 140737488348512, base = 4389931, size = 
0}
pde = (struct pci_devemu *) 0x654f90
bi = (struct businfo *) 0x801a2
si = (struct slotinfo *) 0x801a21c40
fi = (struct funcinfo *) 0x801a21c70
lowmem = 18446735284888420640
bus = 0
slot = 30
func = 0
error = 0
#5  0x0040a715 in main (argc=1, argv=0x7fffe778) at 
/usr/src/usr.sbin/bhyve/bhyverun.c:913
c = -1
error = 0
gdb_port = 0
err = 0
bvmcons = 0
max_vcpus = 16
mptgen = 1
memflags = 0
rtc_localtime = 1
ctx = (struct vmctx *) 0x801a1b080
rip = 26
memsize = 4294967296
optstr = 0x446057 "abehuwxACHIPSWYp:g:c:s:m:l:U:"
Current language:  auto; currently minimal
(gdb) 


The command I used to start was:

bhyve -c 2 -m 4096 -w -H \
-s 0,hostbridge \
-s 
3,ahci-cd,/ISOs/TrueOS-Desktop-11.0-CURRENTJULY2016-07-08-2016-x64-DVD.iso \
-s 4,ahci-hd,disk0.img \
-s 5,virtio-net,tap0 \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
-s 29,fbuf,tcp=0.0.0.0:5900,w=800,h=600,wait \
-s 30,xhci \
-s 31,lpc -l com1,stdio \
vm0




pgpXU6EcygH0x.pgp
Description: PGP signature