[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [qemu-xen-unstable] cmdline: Parse -pciemulation before trying to use it
commit 79398a2710be3e2cf228a23eb15cf9573ff9fe9b Author: Kaifeng Zhu <kaifeng.zhu@xxxxxxxxxx> AuthorDate: Thu Jan 8 06:14:37 2015 +0000 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Fri Oct 16 16:52:06 2015 +0100 cmdline: Parse -pciemulation before trying to use it Signed-off-by: Kaifeng Zhu <kaifeng.zhu@xxxxxxxxxx> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- vl.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/vl.c b/vl.c index d21c3aa..67d9d86 100644 --- a/vl.c +++ b/vl.c @@ -5952,6 +5952,15 @@ int main(int argc, char **argv, char **envp) } } +#ifdef CONFIG_PASSTHROUGH + for (i = 0; i < nb_pci_emulation; i++) { + if (pci_emulation_add(pci_emulation_config_text[i]) < 0) { + fprintf(stderr, "Warning: could not add PCI device %s\n", + pci_emulation_config_text[i]); + } + } +#endif + machine->init(ram_size, vga_ram_size, boot_devices, kernel_filename, kernel_cmdline, initrd_filename, cpu_model, direct_pci); @@ -6068,15 +6077,6 @@ int main(int argc, char **argv, char **envp) } } -#ifdef CONFIG_PASSTHROUGH - for (i = 0; i < nb_pci_emulation; i++) { - if (pci_emulation_add(pci_emulation_config_text[i]) < 0) { - fprintf(stderr, "Warning: could not add PCI device %s\n", - pci_emulation_config_text[i]); - } - } -#endif - for(i = 0; i < MAX_VIRTIO_CONSOLES; i++) { const char *devname = virtio_consoles[i]; if (virtcon_hds[i] && devname) { -- generated by git-patchbot for /home/xen/git/qemu-xen-unstable.git _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |