[Differential] D9686: fix UEFI VM's bootup on Hyper-V (i.e. Hyper-V Generation-2 VM)

2017-02-26 Thread sepherosa_gmail.com (Sepherosa Ziehau)
sepherosa_gmail.com accepted this revision.
sepherosa_gmail.com added a comment.
This revision has a positive review.


  We plan to commit this near the end of this week, if no objection comes.  It 
detects possible errors, and obviously will not make the situation worse than 
before.

REVISION DETAIL
  https://reviews.freebsd.org/D9686

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: decui_microsoft.com, imp, jhb, will, kib, delphij, emaste, 
honzhan_microsoft.com, howard0su_gmail.com, marcel, tsoome, gonzo, manu, 
andrew, sbruno, ambrisko, allanjude, bapt, cem, smh, ian, sepherosa_gmail.com
Cc: freebsd-virtualization-list
___
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"


[Differential] D9686: fix UEFI VM's bootup on Hyper-V (i.e. Hyper-V Generation-2 VM)

2017-02-26 Thread decui_microsoft.com (Dexuan Cui)
decui_microsoft.com added a comment.


  Cc'ed more people to have more input.
  
  IMO it would be really great to have this patch, because currently UEFI 
FreeBSD VMs are completely blocked on Hyper-V.

REVISION DETAIL
  https://reviews.freebsd.org/D9686

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: decui_microsoft.com, imp, jhb, will, kib, delphij, emaste, 
sepherosa_gmail.com, honzhan_microsoft.com, howard0su_gmail.com, marcel, 
tsoome, gonzo, manu, andrew, sbruno, ambrisko, allanjude, bapt, cem, smh, ian
Cc: freebsd-virtualization-list
___
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"


[Differential] D9686: fix UEFI VM's bootup on Hyper-V (i.e. Hyper-V Generation-2 VM)

2017-02-26 Thread decui_microsoft.com (Dexuan Cui)
decui_microsoft.com added reviewers: tsoome, gonzo, manu, andrew, sbruno, 
ambrisko, allanjude, bapt, cem, smh, ian.

REVISION DETAIL
  https://reviews.freebsd.org/D9686

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: decui_microsoft.com, imp, jhb, will, kib, delphij, emaste, 
sepherosa_gmail.com, honzhan_microsoft.com, howard0su_gmail.com, marcel, 
tsoome, gonzo, manu, andrew, sbruno, ambrisko, allanjude, bapt, cem, smh, ian
Cc: freebsd-virtualization-list
___
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 passthrough problem after updated host to 10.3

2017-02-26 Thread Sergey Matveychuk

27.02.2017 3:09, Peter Grehan пишет:

Hi Sergey,


Now, after experiments I can say the card can work only on 2 slot and
function=function on host.

Example:
-s 2:1,passthrough,3/0/1


It's even worse I thought.
The network card work only if spare slot with a disk device (may be any
device, I did not try).
So, it works:
-s 2:1,passthru,3/0/1 -s 2:0,virtio-blk,mydisk

and it does not work:
-s 2:1,passthru,3/0/1 -s 3:0,virtio-blk,mydisk


 Guests in general won't probe non-zero functions if function 0 is not
present. Putting something at function 0 allows the device probe to be
extended to the non-zero functions you have configured.


Bingo! Thank you for explain it.
___
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 passthrough problem after updated host to 10.3

2017-02-26 Thread Peter Grehan

Hi Sergey,


Now, after experiments I can say the card can work only on 2 slot and
function=function on host.

Example:
-s 2:1,passthrough,3/0/1


It's even worse I thought.
The network card work only if spare slot with a disk device (may be any
device, I did not try).
So, it works:
-s 2:1,passthru,3/0/1 -s 2:0,virtio-blk,mydisk

and it does not work:
-s 2:1,passthru,3/0/1 -s 3:0,virtio-blk,mydisk


 Guests in general won't probe non-zero functions if function 0 is not 
present. Putting something at function 0 allows the device probe to be 
extended to the non-zero functions you have configured.



It does not make a sense for me. Only idea is the network card is a
quad-port card. And its driver need to have any device in the same slot
with 0 feature (to initialize PHY?). Because of my host system is
connected to first ethernet I can't passthrough it to guest and test the
theory.


 Certain PCI devices do have dependencies between functions (e.g. 
certain Qlogic FC adapters), while others are independent (Intel 
multi-port NICs). This part is probably a case of the former.


 I'd suspect that if you passed the entire device through (and matched 
function numbers) to a guest, it would work. However, as you have 
mentioned, a port needs to be dedicated to the host :(


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 passthrough problem after updated host to 10.3

2017-02-26 Thread Sergey Matveychuk

27.02.2017 2:42, Sergey Matveychuk пишет:

The network card work only if spare slot with a disk device (may be any


s/spare/share/
___
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 passthrough problem after updated host to 10.3

2017-02-26 Thread Sergey Matveychuk

27.02.2017 1:52, Sergey Matveychuk пишет:

Now, after experiments I can say the card can work only on 2 slot and
function=function on host.

Example:
-s 2:1,passthrough,3/0/1


It's even worse I thought.
The network card work only if spare slot with a disk device (may be any 
device, I did not try).

So, it works:
-s 2:1,passthru,3/0/1 -s 2:0,virtio-blk,mydisk

and it does not work:
-s 2:1,passthru,3/0/1 -s 3:0,virtio-blk,mydisk

It does not make a sense for me. Only idea is the network card is a 
quad-port card. And its driver need to have any device in the same slot 
with 0 feature (to initialize PHY?). Because of my host system is 
connected to first ethernet I can't passthrough it to guest and test the 
theory.

___
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 passthrough problem after updated host to 10.3

2017-02-26 Thread Sergey Matveychuk

25.02.2017 6:42, Sergey Matveychuk пишет:

Hi.

After updating my host from 10.0-RELEASE to 10.3-RELEASE-p11 I've got
problem with my network card passthrought:

pci0:0:3:0: failed to read VPD data.
bge0:  mem
0xc001-0xc001,0xc002-0xc002,0xc003-0xc003 irq 36
at device 3.0 on pci0
bge0: APE FW version: NCSI v1.0.60.0
bge0: CHIP ID 0x05719001; ASIC REV 0x5719; CHIP REV 0x57190; PCI-E
bge0: Try again
bge0: Try again
bge0: Try again
bge0: Try again
bge0: attaching PHYs failed
device_attach: bge0 attach returned 6

pciconf on the host system:
ppt0@pci0:3:0:1:class=0x02 card=0x169d103c chip=0x165714e4
rev=0x01 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'NetXtreme BCM5719 Gigabit Ethernet PCIe'
class  = network
subclass   = ethernet


Oh, I found my message when I tried passthrough for a first time:
https://lists.freebsd.org/pipermail/freebsd-virtualization/2014-January/001973.html
For 3 year I forgot how I fixed it.

Now, after experiments I can say the card can work only on 2 slot and 
function=function on host.


Example:
-s 2:1,passthrough,3/0/1
-s 2:3,passthrough,3/0/3

It does not work on slot 3 and function 0 as vmrun.sh does. I have no 
idea why.

So, current vmrun.sh is not an option for me.
___
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"

Problem reports for freebsd-virtualization@FreeBSD.org that need special attention

2017-02-26 Thread bugzilla-noreply
To view an individual PR, use:
  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id).

The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status  |Bug Id | Description
+---+---
New |212820 | FreeBSD 10-STABLE from latest HEAD and 11-RELEASE 
Open|212721 | FreeBSD 11.0-RC2/RC3/RELEASE fails on Hyper-V 201 

2 problems total for which you should take action.
___
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"