Skip to contentSkip to conversation

ioemu: Fix getting the configuration of PCI pass-through from xenstore

PATCH In review Yuji Shimada 3 participants 5 messages Mar 17, 2009 – Mar 24, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ioemu: Fix getting the configuration of PCI pass-through from xenstore

This patch fixes getting the configuration of PCI pass-through from xenstore.

Thanks,
--
Yuji Shimada

vl.c +3 -3
index 9b9f7d5..c0d1df4 100644
@@ -5783,6 +5783,9 @@ int main(int argc, char **argv, char **envp)
         }
     }
 
+    if (strlen(direct_pci_str) > 0)
+        direct_pci = direct_pci_str;
+
     machine->init(ram_size, vga_ram_size, boot_devices,
                   kernel_filename, kernel_cmdline, initrd_filename, cpu_model,
 		  direct_pci);
@@ -5901,9 +5904,6 @@ int main(int argc, char **argv, char **envp)
         }
     }
 
-    if (strlen(direct_pci_str) > 0)
-        direct_pci = direct_pci_str;
-
     for(i = 0; i < MAX_VIRTIO_CONSOLES; i++) {
         const char *devname = virtio_consoles[i];
         if (virtcon_hds[i] && devname) {
#1 lore raw
Quoted 1 line · Yuji Shimada

This patch fixes getting the configuration of PCI pass-through from xenstore.

That looks good to me, though I'm a little confused about how it worked without this change.

I'm looking at cset 82787c6f689d869ad349df83ec3f58702afe00fe "Override default cache mode for disk images to write-back"

Signature · 3 lines
Simon Horman
  VA Linux Systems Japan K.K., Sydney, Australia Satellite Office
  H: www.vergenet.net/~horms/             W: www.valinux.co.jp/en
#2 lore raw
Quoted 8 lines · On Wed, 18 Mar 2009 09:57:00 +1100 Simon Horman <[email protected]> wrote:
Quoted 1 line · Yuji Shimada

This patch fixes getting the configuration of PCI pass-through from xenstore.

That looks good to me, though I'm a little confused about how it worked without this change.

I'm looking at cset 82787c6f689d869ad349df83ec3f58702afe00fe "Override default cache mode for disk images to write-back"

This cset worked well without my patch.

But the latest cset does not work.
So I submitted the patch.

Thanks,
--
Yuji Shimada

#3 lore raw
Quoted 9 lines · Yuji Shimada
Quoted 6 lines · On Wed, 18 Mar 2009 09:57:00 +1100 Simon Horman <[email protected]> wrote:
Quoted 1 line · Yuji Shimada

This patch fixes getting the configuration of PCI pass-through from xenstore.

That looks good to me, though I'm a little confused about how it worked without this change.

Quoted 7 lines
Quoted 2 lines

I'm looking at cset 82787c6f689d869ad349df83ec3f58702afe00fe "Override default cache mode for disk images to write-back"

This cset worked well without my patch.

But the latest cset does not work.
So I submitted the patch.

Thanks, though I don't seem to be able to get the latest cset to work, even with your patch.

Signature · 3 lines
Simon Horman
  VA Linux Systems Japan K.K., Sydney, Australia Satellite Office
  H: www.vergenet.net/~horms/             W: www.valinux.co.jp/en
Acked-by on v1 1/1
#4 lore raw
In reply to Yuji Shimada

BTW, looks the patch is still not in the latest qemu-xen-unstable.git tree.

-- Dexuan

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Yuji Shimada
Sent: 2009年3月17日 16:48
To: [email protected]; Ian Jackson
Subject: [Xen-devel] [PATCH] ioemu: Fix getting the configuration of PCI pass-through from xenstore

This patch fixes getting the configuration of PCI pass-through from xenstore.

Thanks,
--
Yuji Shimada

vl.c +3 -3
index 9b9f7d5..c0d1df4 100644
@@ -5783,6 +5783,9 @@ int main(int argc, char **argv, char **envp)
         }
     }
 
+    if (strlen(direct_pci_str) > 0)
+        direct_pci = direct_pci_str;
+
     machine->init(ram_size, vga_ram_size, boot_devices,
                   kernel_filename, kernel_cmdline, initrd_filename, cpu_model,
 		  direct_pci);
@@ -5901,9 +5904,6 @@ int main(int argc, char **argv, char **envp)
         }
     }
 
-    if (strlen(direct_pci_str) > 0)
-        direct_pci = direct_pci_str;
-
     for(i = 0; i < MAX_VIRTIO_CONSOLES; i++) {
         const char *devname = virtio_consoles[i];
         if (virtcon_hds[i] && devname) {

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel