~ubuntu-branches/ubuntu/trusty/qemu/trusty

« back to all changes in this revision

Viewing changes to hw/pci-host/versatile.c

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2013-10-22 22:47:07 UTC
  • mfrom: (1.8.3) (10.1.42 sid)
  • Revision ID: package-import@ubuntu.com-20131022224707-1lya34fw3k3f24tv
Tags: 1.6.0+dfsg-2ubuntu1
* Merge 1.6.0~rc0+dfsg-2exp from debian experimental.  Remaining changes:
  - debian/control
    * update maintainer
    * remove libiscsi, usb-redir, vde, vnc-jpeg, and libssh2-1-dev
      from build-deps
    * enable rbd
    * add qemu-system and qemu-common B/R to qemu-keymaps
    * add D:udev, R:qemu, R:qemu-common and B:qemu-common to
      qemu-system-common
    * qemu-system-arm, qemu-system-ppc, qemu-system-sparc:
      - add qemu-kvm to Provides
      - add qemu-common, qemu-kvm, kvm to B/R
      - remove openbios-sparc from qemu-system-sparc D
      - drop openbios-ppc and openhackware Depends to Suggests (for now)
    * qemu-system-x86:
      - add qemu-common to Breaks/Replaces.
      - add cpu-checker to Recommends.
    * qemu-user: add B/R:qemu-kvm
    * qemu-kvm:
      - add armhf armel powerpc sparc to Architecture
      - C/R/P: qemu-kvm-spice
    * add qemu-common package
    * drop qemu-slof which is not packaged in ubuntu
  - add qemu-system-common.links for tap ifup/down scripts and OVMF link.
  - qemu-system-x86.links:
    * remove pxe rom links which are in kvm-ipxe
    * add symlink for kvm.1 manpage
  - debian/rules
    * add kvm-spice symlink to qemu-kvm
    * call dh_installmodules for qemu-system-x86
    * update dh_installinit to install upstart script
    * run dh_installman (Closes: #709241) (cherrypicked from 1.5.0+dfsg-2)
  - Add qemu-utils.links for kvm-* symlinks.
  - Add qemu-system-x86.qemu-kvm.upstart and .default
  - Add qemu-system-x86.modprobe to set nesting=1
  - Add qemu-system-common.preinst to add kvm group
  - qemu-system-common.postinst: remove bad group acl if there, then have
    udev relabel /dev/kvm.
  - New linaro patches from qemu-linaro rebasing branch
  - Dropped patches:
    * xen-simplify-xen_enabled.patch
    * sparc-linux-user-fix-missing-symbols-in-.rel-.rela.plt-sections.patch
    * main_loop-do-not-set-nonblocking-if-xen_enabled.patch
    * xen_machine_pv-do-not-create-a-dummy-CPU-in-machine-.patch
    * virtio-rng-fix-crash
  - Kept patches:
    * expose_vms_qemu64cpu.patch - updated
    * linaro arm patches from qemu-linaro rebasing branch
  - New patches:
    * fix-pci-add: change CONFIG variable in ifdef to make sure that
      pci_add is defined.
* Add linaro patches
* Add experimental mach-virt patches for arm virtualization.
* qemu-system-common.install: add debian/tmp/usr/lib to install the
  qemu-bridge-helper

Show diffs side-by-side

added added

removed removed

Lines of Context:
381
381
    PCIHostState *h = PCI_HOST_BRIDGE(obj);
382
382
    PCIVPBState *s = PCI_VPB(obj);
383
383
 
384
 
    memory_region_init(&s->pci_io_space, "pci_io", 1ULL << 32);
385
 
    memory_region_init(&s->pci_mem_space, "pci_mem", 1ULL << 32);
 
384
    memory_region_init(&s->pci_io_space, OBJECT(s), "pci_io", 1ULL << 32);
 
385
    memory_region_init(&s->pci_mem_space, OBJECT(s), "pci_mem", 1ULL << 32);
386
386
 
387
387
    pci_bus_new_inplace(&s->pci_bus, DEVICE(obj), "pci",
388
388
                        &s->pci_mem_space, &s->pci_io_space,
424
424
     * 3 : PCI IO window
425
425
     * 4..6 : PCI memory windows
426
426
     */
427
 
    memory_region_init_io(&s->controlregs, &pci_vpb_reg_ops, s, "pci-vpb-regs",
428
 
                          0x1000);
 
427
    memory_region_init_io(&s->controlregs, OBJECT(s), &pci_vpb_reg_ops, s,
 
428
                          "pci-vpb-regs", 0x1000);
429
429
    sysbus_init_mmio(sbd, &s->controlregs);
430
 
    memory_region_init_io(&s->mem_config, &pci_vpb_config_ops, s,
 
430
    memory_region_init_io(&s->mem_config, OBJECT(s), &pci_vpb_config_ops, s,
431
431
                          "pci-vpb-selfconfig", 0x1000000);
432
432
    sysbus_init_mmio(sbd, &s->mem_config);
433
 
    memory_region_init_io(&s->mem_config2, &pci_vpb_config_ops, s,
 
433
    memory_region_init_io(&s->mem_config2, OBJECT(s), &pci_vpb_config_ops, s,
434
434
                          "pci-vpb-config", 0x1000000);
435
435
    sysbus_init_mmio(sbd, &s->mem_config2);
436
436
 
437
437
    /* The window into I/O space is always into a fixed base address;
438
438
     * its size is the same for both realview and versatile.
439
439
     */
440
 
    memory_region_init_alias(&s->pci_io_window, "pci-vbp-io-window",
 
440
    memory_region_init_alias(&s->pci_io_window, OBJECT(s), "pci-vbp-io-window",
441
441
                             &s->pci_io_space, 0, 0x100000);
442
442
 
443
443
    sysbus_init_mmio(sbd, &s->pci_io_space);
447
447
     * offsets are guest controllable via the IMAP registers.
448
448
     */
449
449
    for (i = 0; i < 3; i++) {
450
 
        memory_region_init_alias(&s->pci_mem_window[i], "pci-vbp-window",
 
450
        memory_region_init_alias(&s->pci_mem_window[i], OBJECT(s), "pci-vbp-window",
451
451
                                 &s->pci_mem_space, 0, s->mem_win_size[i]);
452
452
        sysbus_init_mmio(sbd, &s->pci_mem_window[i]);
453
453
    }