Re: dtrace fbt vs vmm

2015-06-22 Thread Andriy Gapon
On 23/06/2015 05:24, Neel Natu wrote: > Hi Andriy, > > On Mon, Jun 22, 2015 at 9:17 AM, Andriy Gapon wrote: >> On 22/06/2015 19:08, Peter Grehan wrote: >>> Hi Andriy, >>> I haven't investigated this issue further, but if there are any unsafe functions in vmm it would be nice to bl

Re: bhyve: centos 7.1 with multiple virtual processors

2015-06-22 Thread Andriy Gapon
On 23/06/2015 05:37, Neel Natu wrote: > Hi Andriy, > > FWIW I can boot up a Centos 7.1 virtual machine with 2 and 4 vcpus > fine on my host with 8 physical cores. > > I have some questions about your setup inline. > > On Mon, Jun 22, 2015 at 4:14 AM, Andriy Gapon wrote: >> >> If I run a CentOS

Re: bhyve: centos 7.1 with multiple virtual processors

2015-06-22 Thread Neel Natu
Hi Andriy, FWIW I can boot up a Centos 7.1 virtual machine with 2 and 4 vcpus fine on my host with 8 physical cores. I have some questions about your setup inline. On Mon, Jun 22, 2015 at 4:14 AM, Andriy Gapon wrote: > > If I run a CentOS 7.1 VM with more than one CPU more often than not it wou

Re: dtrace fbt vs vmm

2015-06-22 Thread Neel Natu
Hi Andriy, On Mon, Jun 22, 2015 at 9:17 AM, Andriy Gapon wrote: > On 22/06/2015 19:08, Peter Grehan wrote: >> Hi Andriy, >> >>> I haven't investigated this issue further, but if there are any unsafe >>> functions >>> in vmm it would be nice to blacklist them in the fbt code. >>> Perhaps blacklis

Re: bhyve -> grub-bhyve without intermediate destroy

2015-06-22 Thread Andriy Gapon
On 22/06/2015 22:08, Peter Grehan wrote: > Hi Andriy, > >> This is what happens if I create and run a VM by using grub-bhyve and bhyve, >> then exit from the VM via shutdown -r within it, and then try to run it >> again by >> using grub-bhyve and bhyve: >> >> Assertion failed: (error == 0), funct

Re: bhyve -> grub-bhyve without intermediate destroy

2015-06-22 Thread Peter Grehan
Hi Andriy, This is what happens if I create and run a VM by using grub-bhyve and bhyve, then exit from the VM via shutdown -r within it, and then try to run it again by using grub-bhyve and bhyve: Assertion failed: (error == 0), function fbsdrun_addcpu, file /usr/src/usr.sbin/bhyve/bhyverun.c,

bhyve -> grub-bhyve without intermediate destroy

2015-06-22 Thread Andriy Gapon
This is what happens if I create and run a VM by using grub-bhyve and bhyve, then exit from the VM via shutdown -r within it, and then try to run it again by using grub-bhyve and bhyve: Assertion failed: (error == 0), function fbsdrun_addcpu, file /usr/src/usr.sbin/bhyve/bhyverun.c, line 261 gru

Re: dtrace fbt vs vmm

2015-06-22 Thread Andriy Gapon
On 22/06/2015 19:08, Peter Grehan wrote: > Hi Andriy, > >> I haven't investigated this issue further, but if there are any unsafe >> functions >> in vmm it would be nice to blacklist them in the fbt code. >> Perhaps blacklisting everything from vmm module could be a stopgap solution. > > Intel

Re: dtrace fbt vs vmm

2015-06-22 Thread Peter Grehan
Hi Andriy, I haven't investigated this issue further, but if there are any unsafe functions in vmm it would be nice to blacklist them in the fbt code. Perhaps blacklisting everything from vmm module could be a stopgap solution. Intel or AMD ? We've been able to run dtrace on Intel; less (to n

dtrace fbt vs vmm

2015-06-22 Thread Andriy Gapon
It seems that vmm contains functions for which it is not safe to enable fbt probes. At least, if I activate all fbt return probes with e.g. fbt:::return /self->trace && (int)arg1 == 28/ { printf("ret = %#x\n", arg0); stack(); (this is a part of larger script) while having an active bhyve VM, th

Re: bhyve: centos 7.1 with multiple virtual processors

2015-06-22 Thread Andriy Gapon
On 22/06/2015 17:41, Peter Grehan wrote: > Hi Andriy, > >> If I run a CentOS 7.1 VM with more than one CPU more often than not it would >> hang on startup and bhyve would start spinning. > > Looks like an AMD host - what's the version of FreeBSD you are running there > ? Yes, this is an AMD ho

Re: bhyve: centos 7.1 with multiple virtual processors

2015-06-22 Thread Peter Grehan
Hi Andriy, If I run a CentOS 7.1 VM with more than one CPU more often than not it would hang on startup and bhyve would start spinning. Looks like an AMD host - what's the version of FreeBSD you are running there ? later, Peter. ___ freebsd-vir

Re: header type for bhyve host-pci bridge

2015-06-22 Thread Peter Grehan
Hi Andriy, diff --git a/usr.sbin/bhyve/pci_hostbridge.c b/usr.sbin/bhyve/pci_hostbridge.c index 54a25ae..5c9ea28 100644 --- a/usr.sbin/bhyve/pci_hostbridge.c +++ b/usr.sbin/bhyve/pci_hostbridge.c @@ -38,7 +38,7 @@ pci_hostbridge_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts)

bhyve: centos 7.1 with multiple virtual processors

2015-06-22 Thread Andriy Gapon
If I run a CentOS 7.1 VM with more than one CPU more often than not it would hang on startup and bhyve would start spinning. The following are the last messages seen in the VM: Switching to clocksource hpet [ cut here ] WARNING: at kernel/time/clockevents.c:239 clockevent

header type for bhyve host-pci bridge

2015-06-22 Thread Andriy Gapon
diff --git a/usr.sbin/bhyve/pci_hostbridge.c b/usr.sbin/bhyve/pci_hostbridge.c index 54a25ae..5c9ea28 100644 --- a/usr.sbin/bhyve/pci_hostbridge.c +++ b/usr.sbin/bhyve/pci_hostbridge.c @@ -38,7 +38,7 @@ pci_hostbridge_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts) /* config spa