xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Xu, Quan" <quan.xu@intel.com>
To: Jan Beulich <JBeulich@suse.com>, "Hao, Xudong" <xudong.hao@intel.com>
Cc: Xen-devel <xen-devel@lists.xenproject.org>,
	Wei Liu <wei.liu2@citrix.com>,
	"Zhang, PengtaoX" <pengtaox.zhang@intel.com>
Subject: Re: [BUG] win2008 guest cannot get ip through sriov
Date: Tue, 7 Jun 2016 05:52:01 +0000	[thread overview]
Message-ID: <945CA011AD5F084CBEA3E851C0AB28894B8C6C7C@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <57503DE102000078000F0F13@prv-mh.provo.novell.com>

[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]

On June 02, 2016 8:09 PM, Jan Beulich <JBeulich@suse.com> wrote:
> Attached both a hypervisor and a qemu patch. Their plus
> debug key M and i output is what I'd like to start with.

Applied these two patches, the attach files are logs.

-vf PT is working for SLES 12. The logs:
   qemu-dm-sles.log -- qemu log, vf PT for sles 12.
   xen-sles.log -- xen log, vf PT for sles 12.

-vf PT is not working for win2008: the logs:
   qemu-dm-win2k8.log -- qemu log, vf PT for win2008.
   xen-win2k8.log -- xen log, vf PT for win2008.


btw, when I updated the NIC driver for win2008,  actually, it is working.  Xudong, could you help me verify it again?

((
    xen commit: bbfd2d6ccb31a3aeea49c8f9c7884792ddc26e3b
    NIC: Intel Corporation I350 Gigabit Network Connection
     new win2k8 NIC driver ,https://downloadcenter.intel.com/download/18720/Network-Adapter-Driver-for-Windows-Server-2008-Final-Release?product=59679
))

qemu-dm-TestDom.log -- qemu log, pf PT for win2008.


... taken together, IMO, from qemu-dm-win2k8.log(also I have read xen/QEMU code), the win2k8 vf nic driver is not loading. (any idea, feel free to let me know. I will help you try as much as I can..).

Thoughts?

Quan

[-- Attachment #2: qemu-dm-sles.log --]
[-- Type: application/octet-stream, Size: 2175 bytes --]

char device redirected to /dev/pts/13 (label serial0)
[00:04.0] xen_pt_initfn: Assigning real physical device 0d:10.2 to devfn 0x20
[00:04.0] xen_pt_initfn: 0000:0d:10.2 is a SR-IOV Virtual Function
[00:04.0] xen_pt_register_regions: IO region 0 registered (size=0x00004000 base_addr=0xd0a20000 type: 0)
[00:04.0] xen_pt_register_regions: IO region 3 registered (size=0x00004000 base_addr=0xd0a00000 type: 0)
[00:04.0] xen_pt_config_reg_init: Offset 0x000e mismatch! Emulated=0x0080, host=0x0000, syncing to 0x0080.
[00:04.0] xen_pt_config_reg_init: Offset 0x00a4 mismatch! Emulated=0x0000, host=0x10008cc2, syncing to 0x8cc2.
[00:04.0] xen_pt_msix_init: get MSI-X table BAR base 0xd0a00000
[00:04.0] xen_pt_msix_init: table_off = 0, total_entries = 3
[00:04.0] xen_pt_msix_init: mapping physical MSI-X table to 0x7fa44f20e000
[00:04.0] xen_pt_config_reg_init: Offset 0x0072 mismatch! Emulated=0x0000, host=0x0002, syncing to 0x0002.
[00:04.0] xen_pt_initfn: no pin interrupt
[00:04.0] xen_pt_initfn: Real physical device 0d:10.2 registered successfully!
[00:04.0] xen_pt_msixctrl_reg_write: MSI-X ctrl 0002 (0002/0002)
[00:04.0] xen_pt_msixctrl_reg_write: MSI-X ctrl 0002 (0002/0002)
[00:04.0] pci_msix_write: [0]=fee00000 (0,0)
[00:04.0] pci_msix_write: [4]=00000000 (0,4)
[00:04.0] pci_msix_write: [8]=00004051 (0,8)
[00:04.0] pci_msix_write: [10]=fee00000 (1,0)
[00:04.0] pci_msix_write: [14]=00000000 (1,4)
[00:04.0] pci_msix_write: [18]=00004061 (1,8)
[00:04.0] pci_msix_write: [20]=fee00000 (2,0)
[00:04.0] pci_msix_write: [24]=00000000 (2,4)
[00:04.0] pci_msix_write: [28]=00004071 (2,8)
[00:04.0] xen_pt_msixctrl_reg_write: MSI-X ctrl c002 (c002/c002)
[00:04.0] xen_pt_msixctrl_reg_write: enable MSI-X
[00:04.0] pci_msix_write: [c]=00000001 (0,c)
[00:04.0] pci_msix_write: [1c]=00000001 (1,c)
[00:04.0] pci_msix_write: [2c]=00000001 (2,c)
[00:04.0] xen_pt_msixctrl_reg_write: MSI-X ctrl 8002 (8002/8002)
[00:04.0] msi_msix_update: Updating MSI-X with pirq 103 gvec 0x51 gflags 0 (entry: 0)
[00:04.0] msi_msix_update: Updating MSI-X with pirq 102 gvec 0x61 gflags 0 (entry: 0x1)
[00:04.0] msi_msix_update: Updating MSI-X with pirq 101 gvec 0x71 gflags 0 (entry: 0x2)

[-- Attachment #3: qemu-dm-TestDom.log --]
[-- Type: application/octet-stream, Size: 5805 bytes --]

char device redirected to /dev/pts/13 (label serial0)
[00:04.0] xen_pt_initfn: Assigning real physical device 0c:00.3 to devfn 0x20
[00:04.0] xen_pt_register_regions: IO region 0 registered (size=0x00020000 base_addr=0xd0900000 type: 0)
[00:04.0] xen_pt_register_regions: IO region 2 registered (size=0x00000020 base_addr=0x00002000 type: 0x1)
[00:04.0] xen_pt_register_regions: IO region 3 registered (size=0x00004000 base_addr=0xd0980000 type: 0)
[00:04.0] xen_pt_config_reg_init: Offset 0x0010 mismatch! Emulated=0x0000, host=0xd0900000, syncing to 0xd0900000.
[00:04.0] xen_pt_config_reg_init: Offset 0x0018 mismatch! Emulated=0x0000, host=0x2001, syncing to 0x2001.
[00:04.0] xen_pt_config_reg_init: Offset 0x001c mismatch! Emulated=0x0000, host=0xd0980000, syncing to 0xd0980000.
[00:04.0] xen_pt_config_reg_init: Offset 0x0042 mismatch! Emulated=0x0000, host=0xc823, syncing to 0x0023.
[00:04.0] xen_pt_config_reg_init: Offset 0x0044 mismatch! Emulated=0x0008, host=0x2008, syncing to 0x2000.
[00:04.0] xen_pt_config_reg_init: Offset 0x0052 mismatch! Emulated=0x0000, host=0x0180, syncing to 0x0080.
[00:04.0] xen_pt_config_reg_init: Offset 0x00a4 mismatch! Emulated=0x0000, host=0x10008cc2, syncing to 0x8cc2.
[00:04.0] xen_pt_config_reg_init: Offset 0x00aa mismatch! Emulated=0x0000, host=0x0010, syncing to 0x0010.
[00:04.0] xen_pt_config_reg_init: Offset 0x00b2 mismatch! Emulated=0x0000, host=0x1042, syncing to 0x1042.
[00:04.0] xen_pt_msix_init: get MSI-X table BAR base 0xd0980000
[00:04.0] xen_pt_msix_init: table_off = 0, total_entries = 10
[00:04.0] xen_pt_msix_init: mapping physical MSI-X table to 0x7fb7a0a64000
[00:04.0] xen_pt_config_reg_init: Offset 0x0072 mismatch! Emulated=0x0000, host=0x0009, syncing to 0x0009.
[00:04.0] xen_pt_pci_intx: intx=4
[00:04.0] xen_pt_initfn: Real physical device 0c:00.3 registered successfully!
[00:04.0] xen_pt_msixctrl_reg_write: MSI-X ctrl 0009 (0009/0009)
[00:04.0] xen_pt_msixctrl_reg_write: MSI-X ctrl 0009 (0009/0009)
[00:04.0] pci_msix_write: [0]=fee01004 (0,0)
[00:04.0] pci_msix_write: [4]=00000000 (0,4)
[00:04.0] pci_msix_write: [8]=000048b0 (0,8)
[00:04.0] pci_msix_write: [c]=00000000 (0,c)
[00:04.0] pci_msix_write: [10]=fee01004 (1,0)
[00:04.0] pci_msix_write: [14]=00000000 (1,4)
[00:04.0] pci_msix_write: [18]=000048a0 (1,8)
[00:04.0] pci_msix_write: [1c]=00000000 (1,c)
[00:04.0] pci_msix_write: [20]=fee01004 (2,0)
[00:04.0] pci_msix_write: [24]=00000000 (2,4)
[00:04.0] pci_msix_write: [28]=00004890 (2,8)
[00:04.0] pci_msix_write: [2c]=00000000 (2,c)
[00:04.0] pci_msix_write: [30]=fee01004 (3,0)
[00:04.0] pci_msix_write: [34]=00000000 (3,4)
[00:04.0] pci_msix_write: [38]=00004880 (3,8)
[00:04.0] pci_msix_write: [3c]=00000000 (3,c)
[00:04.0] pci_msix_write: [40]=fee01004 (4,0)
[00:04.0] pci_msix_write: [44]=00000000 (4,4)
[00:04.0] pci_msix_write: [48]=00004870 (4,8)
[00:04.0] pci_msix_write: [4c]=00000000 (4,c)
[00:04.0] pci_msix_write: [50]=fee01004 (5,0)
[00:04.0] pci_msix_write: [54]=00000000 (5,4)
[00:04.0] pci_msix_write: [58]=00004860 (5,8)
[00:04.0] pci_msix_write: [5c]=00000000 (5,c)
[00:04.0] pci_msix_write: [60]=fee01004 (6,0)
[00:04.0] pci_msix_write: [64]=00000000 (6,4)
[00:04.0] pci_msix_write: [68]=00004892 (6,8)
[00:04.0] pci_msix_write: [6c]=00000000 (6,c)
[00:04.0] pci_msix_write: [70]=fee01004 (7,0)
[00:04.0] pci_msix_write: [74]=00000000 (7,4)
[00:04.0] pci_msix_write: [78]=00004882 (7,8)
[00:04.0] pci_msix_write: [7c]=00000000 (7,c)
[00:04.0] pci_msix_write: [80]=fee01004 (8,0)
[00:04.0] pci_msix_write: [84]=00000000 (8,4)
[00:04.0] pci_msix_write: [88]=00004872 (8,8)
[00:04.0] pci_msix_write: [8c]=00000000 (8,c)
[00:04.0] pci_msix_write: [90]=fee01004 (9,0)
[00:04.0] pci_msix_write: [94]=00000000 (9,4)
[00:04.0] pci_msix_write: [98]=00004862 (9,8)
[00:04.0] pci_msix_write: [9c]=00000000 (9,c)
[00:04.0] xen_pt_msixctrl_reg_write: MSI-X ctrl 8009 (8009/8009)
[00:04.0] msi_msix_update: Updating MSI-X with pirq 103 gvec 0xb0 gflags 0x201 (entry: 0)
[00:04.0] msi_msix_update: Updating MSI-X with pirq 102 gvec 0xa0 gflags 0x201 (entry: 0x1)
[00:04.0] msi_msix_update: Updating MSI-X with pirq 101 gvec 0x90 gflags 0x201 (entry: 0x2)
[00:04.0] msi_msix_update: Updating MSI-X with pirq 100 gvec 0x80 gflags 0x201 (entry: 0x3)
[00:04.0] msi_msix_update: Updating MSI-X with pirq 99 gvec 0x70 gflags 0x201 (entry: 0x4)
[00:04.0] msi_msix_update: Updating MSI-X with pirq 98 gvec 0x60 gflags 0x201 (entry: 0x5)
[00:04.0] msi_msix_update: Updating MSI-X with pirq 97 gvec 0x92 gflags 0x201 (entry: 0x6)
[00:04.0] msi_msix_update: Updating MSI-X with pirq 96 gvec 0x82 gflags 0x201 (entry: 0x7)
[00:04.0] msi_msix_update: Updating MSI-X with pirq 95 gvec 0x72 gflags 0x201 (entry: 0x8)
[00:04.0] msi_msix_update: Updating MSI-X with pirq 94 gvec 0x62 gflags 0x201 (entry: 0x9)
[00:04.0] xen_pt_msixctrl_reg_write: enable MSI-X
[00:04.0] pci_msix_write: [0]=fee01004 (0,0)
[00:04.0] pci_msix_write: [4]=00000000 (0,4)
[00:04.0] pci_msix_write: [8]=000048b0 (0,8)
[00:04.0] pci_msix_write: [0]=fee01004 (0,0)
[00:04.0] pci_msix_write: [4]=00000000 (0,4)
[00:04.0] pci_msix_write: [8]=000048b0 (0,8)
[00:04.0] pci_msix_write: [c]=00000000 (0,c)
[00:04.0] pci_msix_write: [10]=fee01004 (1,0)
[00:04.0] pci_msix_write: [14]=00000000 (1,4)
[00:04.0] pci_msix_write: [18]=000048a0 (1,8)
[00:04.0] pci_msix_write: [10]=fee01004 (1,0)
[00:04.0] pci_msix_write: [14]=00000000 (1,4)
[00:04.0] pci_msix_write: [18]=000048a0 (1,8)
[00:04.0] pci_msix_write: [1c]=00000000 (1,c)
[00:04.0] pci_msix_write: [20]=fee01004 (2,0)
[00:04.0] pci_msix_write: [24]=00000000 (2,4)
[00:04.0] pci_msix_write: [28]=00004890 (2,8)
[00:04.0] pci_msix_write: [20]=fee01004 (2,0)
[00:04.0] pci_msix_write: [24]=00000000 (2,4)
[00:04.0] pci_msix_write: [28]=00004890 (2,8)
[00:04.0] pci_msix_write: [2c]=00000000 (2,c)

[-- Attachment #4: qemu-dm-win2k8.log --]
[-- Type: application/octet-stream, Size: 1164 bytes --]

char device redirected to /dev/pts/13 (label serial0)
[00:04.0] xen_pt_initfn: Assigning real physical device 0d:10.2 to devfn 0x20
[00:04.0] xen_pt_initfn: 0000:0d:10.2 is a SR-IOV Virtual Function
[00:04.0] xen_pt_register_regions: IO region 0 registered (size=0x00004000 base_addr=0xd0a20000 type: 0)
[00:04.0] xen_pt_register_regions: IO region 3 registered (size=0x00004000 base_addr=0xd0a00000 type: 0)
[00:04.0] xen_pt_config_reg_init: Offset 0x000e mismatch! Emulated=0x0080, host=0x0000, syncing to 0x0080.
[00:04.0] xen_pt_config_reg_init: Offset 0x00a4 mismatch! Emulated=0x0000, host=0x10008cc2, syncing to 0x8cc2.
[00:04.0] xen_pt_msix_init: get MSI-X table BAR base 0xd0a00000
[00:04.0] xen_pt_msix_init: table_off = 0, total_entries = 3
[00:04.0] xen_pt_msix_init: mapping physical MSI-X table to 0x7f64e0076000
[00:04.0] xen_pt_config_reg_init: Offset 0x0072 mismatch! Emulated=0x0000, host=0x0002, syncing to 0x0002.
[00:04.0] xen_pt_initfn: no pin interrupt
[00:04.0] xen_pt_initfn: Real physical device 0d:10.2 registered successfully!
[00:04.0] xen_pt_msixctrl_reg_write: MSI-X ctrl 0002 (0002/0002)
qemu: terminating on signal 1 from pid 3012

[-- Attachment #5: xen-sles.log --]
[-- Type: application/octet-stream, Size: 311 bytes --]

(XEN) [VT-D]d0:PCIe: unmap 0000:0d:10.2
(XEN) [VT-D]d2:PCIe: map 0000:0d:10.2
(XEN) 0000:0d:10.2: ctrl -> 0002 (d0:ffffffff815ff3f5,d2)
(XEN) 0000:0d:10.2: ctrl -> 0002 (d0:ffffffff815ff3f5,d2)
(XEN) 0000:0d:10.2: ctrl -> c002 (d0:ffffffff815ff3f5,d2)
(XEN) 0000:0d:10.2: ctrl -> 8002 (d0:ffffffff815ff3f5,d2)


[-- Attachment #6: xen-win2k8.log --]
[-- Type: application/octet-stream, Size: 137 bytes --]

(XEN) [VT-D]d0:PCIe: unmap 0000:0d:10.2
(XEN) [VT-D]d1:PCIe: map 0000:0d:10.2
(XEN) 0000:0d:10.2: ctrl -> 0002 (d0:ffffffff815ff3f5,d1)


[-- Attachment #7: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  parent reply	other threads:[~2016-06-07  5:52 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-27  9:04 [BUG] win2008 guest cannot get ip through sriov Zhang, PengtaoX
2016-05-27 10:39 ` Wei Liu
2016-05-27 12:16   ` Jan Beulich
2016-05-27 13:34     ` Wei Liu
2016-05-27 14:06       ` Jan Beulich
2016-06-02  7:31         ` Xu, Quan
2016-06-02  9:03           ` Jan Beulich
2016-06-02 10:22           ` Wei Liu
2016-06-02 10:38             ` Jan Beulich
2016-06-02 11:03               ` Wei Liu
2016-06-02 12:08                 ` Jan Beulich
2016-06-02 13:05                   ` Xu, Quan
2016-06-02 13:30                     ` Jan Beulich
2016-06-02 14:02                       ` Xu, Quan
2016-06-07  5:52                   ` Xu, Quan [this message]
2016-06-07  6:07                     ` Xu, Quan
2016-06-07  7:43                       ` Jan Beulich
2016-06-07  7:49                     ` Jan Beulich
2016-06-07  8:03                       ` Xu, Quan
2016-06-07  8:08                       ` Jan Beulich
2016-06-07  8:19                         ` Xu, Quan
2016-06-08  9:12                       ` Xu, Quan
2016-06-08  9:25                         ` Jan Beulich
2017-10-27  7:27                         ` Hao, Xudong
2017-10-27  8:37                           ` Jan Beulich
2017-10-27  8:58                             ` Hao, Xudong
2017-10-27 10:41                           ` Julien Grall
2017-10-27 20:16                             ` Stefano Stabellini
2017-11-02 13:49                               ` Julien Grall
2017-11-03  1:10                                 ` Hao, Xudong
2017-11-03 11:23                                   ` Roger Pau Monné
2017-11-06  1:04                                     ` Hao, Xudong
2017-11-07  9:33                                       ` Roger Pau Monné
2017-11-09  0:22                                         ` Hao, Xudong
2017-11-09  9:27                                           ` Roger Pau Monné
2017-11-09 14:36                                             ` Julien Grall
2017-11-09 14:37                                               ` Julien Grall
2017-11-27  3:20                                                 ` Hao, Xudong
2017-11-27 10:39                                                   ` Julien Grall
2017-11-06  1:07                                     ` Hao, Xudong
2017-11-08 12:13                                 ` Anthony PERARD
2017-11-08 12:17                                   ` Julien Grall
2017-10-30  1:04                             ` Hao, Xudong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=945CA011AD5F084CBEA3E851C0AB28894B8C6C7C@SHSMSX101.ccr.corp.intel.com \
    --to=quan.xu@intel.com \
    --cc=JBeulich@suse.com \
    --cc=pengtaox.zhang@intel.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    --cc=xudong.hao@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).