Loader tunables for virtio

2015-10-22 Thread Mamontov Roman
Hello.
I try to change some tunables for vtnet Ethernet driver and set variable:

*hw.vtnet.csum**_*
*disable=1**hw.vtnet.tso**_*
*disable=1**hw.vtnet.lro**_*
*disable=1**hw.vtnet.mq **_*
*disable=1*
in /boot/loader.conf file. After reboot I try to read value from
sysctl command, but no luck:

#sysctl hw.vtnet
sysctl: unknown oid 'hw.vtnet'

How I can understand, that these variables set to correct values?

Uname: 11.0-CURRENT r289627.

P.S. I just looking why em0 not work (not see packets from host system
in KVM qemu,
watchdog timeout -- resetting) after update from 9.3 RELEASE.
___
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"


[Bug 203884] bhyve exits with assert when vcpu already in use

2015-10-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203884

--- Comment #6 from commit-h...@freebsd.org ---
A commit references this bug:

Author: ngie
Date: Thu Oct 22 08:37:11 UTC 2015
New revision: 289746
URL: https://svnweb.freebsd.org/changeset/base/289746

Log:
  Exit with a user-friendly message instead of tripping an assert
  if vm_activate_cpu(..) fails when called from fbsdrun_addcpu(..)

  MFC after: 1 week
  PR: 203884
  Reviewed by: grehan
  Submitted by: William Orr 

Changes:
  head/usr.sbin/bhyve/bhyverun.c

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


[Bug 203884] bhyve exits with assert when vcpu already in use

2015-10-22 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203884

Garrett Cooper,425-314-3911  changed:

   What|Removed |Added

 Status|New |In Progress

-- 
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: error running grub-bhyve with -S

2015-10-22 Thread Peter Grehan

# bhyvectl —vm=vm0 --destroy
# grub-bhyve -m /images/vm0-device.map -M 1024 -r hd1 -S vm0
Could not setup memory for VM
Error in initializing VM


 The -S option will force allocation of guest memory (required by 
passthru). Is there 1G of free mem available on the machine when 
grub-bhyve was run ?


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"

error running grub-bhyve with -S

2015-10-22 Thread John Nielsen
I’m running bhyve on an Intel machine running FreeBSD 11-CURRENT, updated a few 
days ago. I have a Debian 8.2 VM that has been running fine but now I’d like to 
add a PCI pass-through device. Unfortunately, when I add the required “-S” flag 
to my grub-bhyve command line it doesn’t work:

# bhyvectl —vm=vm0 --destroy
# grub-bhyve -m /images/vm0-device.map -M 1024 -r hd1 -S vm0
Could not setup memory for VM
Error in initializing VM

Obviously, running “bhyve” after that fails as well.

What would cause that error and what can I do about it?

Thanks!

JN

___
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: Issues with bhyve under KVM

2015-10-22 Thread Peter Grehan

Hi Cory,


`dmesg` prints a message saying that VT-x is "disabled by BIOS" (I
passed -L and -bios pointed at OVMF just in case it was a strange
SEABIOS compile option) to no change.  -cpu is set to host, I have also
tried passing -cpu qemu64,+vmx manually to no change.


 That's not strictly true, and in this case harmless. I'll make sure 
that is fixed.



Oct 14 06:13:19  kernel: vmx_init: processor does not support desired
basic capabilities


 bhyve expects that the CPU supports INS/OUTS exits. This is signalled 
in bit 54 of the VMX_BASIC MSR. I'll have a talk with Neel about the 
implications of ignoring this bit.


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: Issues with bhyve under KVM

2015-10-22 Thread Peter Grehan

Hi Cory,


 bhyve expects that the CPU supports INS/OUTS exits. This is signalled
in bit 54 of the VMX_BASIC MSR. I'll have a talk with Neel about the
implications of ignoring this bit.


Hmm.  Does Linux KVM ignore it?


 It must do (as did bhyve for a long time).


(does -host not emulate all MSRs?)


 Probably just not that bit. You might want to try the this patch which 
comments out that test, and see if it gets you any further.

 https://people.freebsd.org/~grehan/patches/vmx_ins.diff

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: Issues with bhyve under KVM

2015-10-22 Thread Cory Smelosky

On 2015-10-21 23:15, Peter Grehan wrote:

Hi Cory,


`dmesg` prints a message saying that VT-x is "disabled by BIOS" (I
passed -L and -bios pointed at OVMF just in case it was a strange
SEABIOS compile option) to no change.  -cpu is set to host, I have 
also

tried passing -cpu qemu64,+vmx manually to no change.


 That's not strictly true, and in this case harmless. I'll make sure
that is fixed.


Ahhh.  Yeah - misleading errors are annoying!




Oct 14 06:13:19  kernel: vmx_init: processor does not support desired
basic capabilities


 bhyve expects that the CPU supports INS/OUTS exits. This is signalled
in bit 54 of the VMX_BASIC MSR. I'll have a talk with Neel about the
implications of ignoring this bit.


Hmm.  Does Linux KVM ignore it?

(does -host not emulate all MSRs?)



later,

Peter.


--
--
Cory Smelosky
iXsystems
___
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: Issues with bhyve under KVM

2015-10-22 Thread Peter Grehan

Hi Cory,


 Probably just not that bit. You might want to try the this patch
which comments out that test, and see if it gets you any further.
 https://people.freebsd.org/~grehan/patches/vmx_ins.diff


--- all_subdir_vmm ---
/usr/src/sys/modules/vmm/../../amd64/vmm/intel/vmx.c:535:11: error:
unused variable 'basic' [-Werror,-Wunused-variable]
 uint64_t basic, fixed0, fixed1, feature_control;
  ^
1 error generated.

Aww. I need to actually run a later SVN release instead of 28. Tried
to save some time. ;)


 Apologies - I didn't compile-test the patch, but the basic idea is to 
comment out that block. You can delete the unused variable 'basic' which 
should get you going.


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"