[Bug 203994] bhyve kernel module may need to relax some checks when running nested under KVM

2017-04-12 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203994

Martin Lucina  changed:

   What|Removed |Added

 CC||mar...@lucina.net

--- Comment #15 from Martin Lucina  ---
Hi, to add some more data points, this is Freebsd 11-RELEASE running in KVM
(with nested=Y, Linux kernel 4.9.20, QEMU version 2.8.0(Debian
1:2.8+dfsg-3~bpo8+1):

CPU: Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz (2594.17-MHz K8-class CPU)

MSR 0x480: 0x00d81000 0x11e57ed0
MSR 0x482: 0xfff9fffe 0x0401e172
MSR 0x48b: 0x00fb 0x
MSR 0x48c: 0x0601 0x06114041

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
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: debugging FreeBSD BHyve guest

2017-04-12 Thread Julian Elischer

On 11/4/17 9:30 pm, Hannes Mehnert wrote:

Hello,

I want to debug a FreeBSD BHyve guest kernel, and tried to follow the
instructions on the wiki
(https://wiki.freebsd.org/bhyve/DebuggingWithGdb) -- but already the
"device bvmdebug" is no longer recognized by make buildkernel.


I hope that is not true. I use it all the time on 10.



Is there a way (and a howto?) to kgdb a FreeBSD guest?


Thanks,

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



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


dos in bhyve

2017-04-12 Thread Andriy Gapon

I wonder if anyone was able to run any DOS variant in bhyve.

I tried FreeDOS using BHYVE_UEFI_CSM firmware, but it seems to just hang.

I also tried adding a frame buffer device, it seems that there is some reaction
to key presses (RET) sent via VNC, but the screen stays black, so it's
impossible to tell if there are any prompts and what happens.
In any case, after a few RET-s the guest crashes with a triple fault.
Seems like that happens when it enables paging.

Some data from the VM state after the crash.
Last instructions:
mov%eax,%cr0
mov$0x11,%edi  <=== triple fault here

cr0[0]  0x8033
cr3[0]  0x00115000
cr4[0]  0x06a0

I wonder if it's the value of CR4 that causes the trouble (PAE bit set).

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