1. 24 6月, 2016 15 次提交
  2. 16 5月, 2016 8 次提交
    • J
      xlconfigtests: use qemu-xen in all test data files · 2d302d79
      Jim Fehlig 提交于
      Some of the test configuration files in tests/xlconfigdata
      use the old qemu-dm as the emulator. Many of the configuration
      features tested (spice, rbd, multi-usb) are not even usable with
      the old qemu. Change these files to use the new qemu-xen (also
      known as qemu upstream) emulator.
      
      Note: This change fixes xlconfigtest failures when the old
      qemu is actually installed on the system. During device post
      parse, the libxl driver attempts to invoke the emulator to
      determine if it is the old or new qemu so it can properly set
      video RAM defaults. With the old qemu installed, the default
      video RAM was set differently than the expected value.
      Changing all the test data files to use qemu-xen ensures
      predictable results wrt default video RAM size.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      (cherry picked from commit b90c4b5f)
      2d302d79
    • J
      libxl: don't attempt to probe a non-existent emulator · 50b9de5b
      Jim Fehlig 提交于
      When probing the <emulator> with '-help' to determine if
      it is the old qemu, errors are reported if the emulator
      doesn't exist
      
      libvirt:  error : internal error: Child process
      (/usr/lib/xen/bin/qemu-dm -help) unexpected exit status 127:
      libvirt:  error : cannot execute binary /usr/lib/xen/bin/qemu-dm:
      No such file or directory
      
      Avoid the probe if the specified emulator doesn't exist,
      squelching the error. There is no behavior change since
      libxlDomainGetEmulatorType() would return
      LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN if the probe failed
      via virCommandRun().
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      (cherry picked from commit 400e716d)
      50b9de5b
    • J
      Fix tests to include video ram size · a086fa28
      Ján Tomko 提交于
      My commit 3e428670 started filling out the video size in post-parse,
      but did not adjust the tests.
      
      (cherry picked from commit 96b21fb0)
      a086fa28
    • J
      Fill out default vram in DeviceDefPostParse · 4dbcc6fb
      Ján Tomko 提交于
      Move filling out the default video (v)ram to DeviceDefPostParse.
      
      This means it can be removed from virDomainVideoDefParseXML
      and qemuParseCommandLine. Also, we no longer need to special case
      VIR_DOMAIN_VIRT_XEN, since the per-driver callback gets called
      before the generic one.
      
      (cherry picked from commit 538012c8)
      4dbcc6fb
    • J
      Call per-device post-parse callback even on implicit video · 41d837ae
      Ján Tomko 提交于
      Commit 6879be48 moved adding of an implicit video device after XML
      parsing. As a result, libxlDomainDeviceDefPostParse() is no longer
      called to set the default vram when adding an implicit device.
      Commit 6879be48 assumes virDomainVideoDefaultRAM() will set the
      default vram, but it returns 0 if the domain virtType is
      VIR_DOMAIN_VIRT_XEN. Attempting to start an HVM domain with vram=0
      results in
      
      error: unsupported configuration: videoram must be at least 4MB for CIRRUS
      
      The default vram setting for Xen HVM domains depends on the device
      model used (qemu-xen vs qemu-traditional), hence setting the
      default is deferred to libxlDomainDeviceDefPostParse().
      
      Call the device post-parse callback even for implicit video,
      to fill out the default vram even for VIR_DOMAIN_VIRT_XEN.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1334557Most-of-commit-message-by: NJim Fehlig <jfehlig@suse.com>
      (cherry picked from commit 3e428670)
      41d837ae
    • J
      Move virDomainDefPostParseInternal after virDomainDeviceDefPostParse · 2b574dca
      Ján Tomko 提交于
      Future commit will call DeviceDefPostParse on a device auto-added
      in DomainDefPostParse.
      
      (cherry picked from commit e4d131b8)
      2b574dca
    • J
      conf: use VIR_APPEND_ELEMENT in virDomainDefAddImplicitVideo · d460558e
      Ján Tomko 提交于
      (cherry picked from commit 12786889)
      d460558e
    • J
      conf: reduce indentation in virDomainDefAddImplicitVideo · 24cf4c64
      Ján Tomko 提交于
      Return early if there is nothing to do.
      
      (cherry picked from commit 1485be17)
      24cf4c64
  3. 06 5月, 2016 1 次提交
  4. 05 5月, 2016 16 次提交