Description of problem: When doing `xm pci-list' on a PV guest you get the failurs: Unexpected error: exceptions.TypeError Please report to xen-devel.com Traceback (most recent call last): File "/usr/sbin/xm", line 10, in ? main.main(sys.argv) File "/usr/lib64/python2.4/site-packages/xen/xm/main.py", line 1595, in main rc = cmd(args) File "/usr/lib64/python2.4/site-packages/xen/xm/main.py", line 1267, in xm_pci_list print ( fmt_str % x ) TypeError: int argument required Version-Release number of selected component (if applicable): RHEL 5.4 Snap 2
Created attachment 355298 [details] fix the format string 'has_vslt' for pv guest PV guest has no 'vslot' and here the wrong fmt_str is chosen. This patch fixes the problem by checking for this situation.
Xudong, can you check if the latest RHEL5.4 build (what's the version?) has or hasn't the bug? Thanks!
Latest RHEL5.4 Snap3 has this bug.
I've made a brew build with this patch included, it's available at: http://brewweb.devel.redhat.com/brew/taskinfo?taskID=1907424 Can you test and verify, preferrably for PV and HVM guests, that this build fixes the problem?
(In reply to comment #4) > I've made a brew build with this patch included, it's available at: > http://brewweb.devel.redhat.com/brew/taskinfo?taskID=1907424 > Can you test and verify, preferrably for PV and HVM guests, that this build > fixes the problem? Xudong, can you help to test the new binary as Don asked? Thanks! Don, BTW, looks we can't open the link from Shanghai: my browser tells me: _______________________________________________________ Network Error (dns_server_failure) Your request could not be processed because an error occurred contacting the DNS server. The DNS server may be temporarily unavailable, or there could be a network problem. For assistance, contact your network support team. -------------------------------------------------------
Sigh, my mistake, that URL is not publicly addressable. NP, I'll send you the RPMs via normal email, expect them soon.
(In reply to comment #4) > I've made a brew build with this patch included, it's available at: > http://brewweb.devel.redhat.com/brew/taskinfo?taskID=1907424 > Can you test and verify, preferrably for PV and HVM guests, that this build > fixes the problem? Don, I had a test, the rpm you sent us fixed the PV issue, and for HVM, it also works fine.
Verify BZ 514025 steps: 1): install RHEL5.4 Snap3 OS 2): uninstall the default xen in Snap3 3): install rpm ball that Don made 4): hide devices that we want to do vtd assignment 5): create one PV guest with one device(02:00.0) assigned 6): in Dom0, using command "xm pci-list PV_guest_ID" to see PV domain's device. if succeed, dom0 will print: [root@localhost sda8]# xm pci-list 9 domain bus slot func 0 2 0 0 With this patch, the expected info shown by dom0, so this bug has gone with this patch.
Snap5 has not this patch in.
(In reply to comment #9) > Snap5 has not this patch in. No, this has been deferred to 5.5. Chris Lalancette
*** Bug 544947 has been marked as a duplicate of this bug. ***
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0294.html
This bug was closed during 5.5 development and it's being removed from the internal tracking bugs (which are now for 5.6).