1. 24 6月, 2016 7 次提交
    • P
      qemu: Extract more information about qemu drives · 72002125
      Peter Krempa 提交于
      Extract whether a given drive has a tray and whether there is no image
      inserted.
      
      Negative logic for the image insertion is chosen so that the flag is set
      only if we are certain of the fact.
      
      (cherry picked from commit f1690dc3)
      72002125
    • P
      qemu: Move struct qemuDomainDiskInfo to qemu_domain.h · ddc05f5c
      Peter Krempa 提交于
      (cherry picked from commit 5f963d89)
      ddc05f5c
    • P
      qemu: process: Refresh ejectable media tray state on VM start · f6721a3d
      Peter Krempa 提交于
      Empty floppy drives start with tray in "open" state and libvirt did not
      refresh it after startup. The code that inserts media into the tray then
      waited until the tray was open before inserting the media and thus
      floppies could not be inserted.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1326660
      (cherry picked from commit a34faf33)
      f6721a3d
    • J
      iscsi: Remove initiatoriqn from virISCSIScanTargets · b73dc2e5
      John Ferlan 提交于
      No longer necessary to have it, so remove it.
      
      (cherry picked from commit 027986f5)
      b73dc2e5
    • F
      util: Remove disabling of autologin for iscsi-targets · 89f7475d
      Fritz Elfert 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1331552
      
      Instead of disabling auto-login of all scsi targets (even those
      that do not "belong" to libvirt), use iscsiadm's "--op nonpersistent"
      during discovery of iSCSI targets (e.g. "iscsiadm --mode discovery
      --type sendtargets") in order to avoid the node database being altered
      which led to the need for the "large hammer" approach taken by
      commit id '3c12b654'.
      
      This commit removes the virISCSITargetAutologin adjustment (eg. the setting
      of node.startup to "manual"). The iscsiadm command has supported this mode
      of operation as of commit id 'ad873767' to open-iscsi.
      
      (cherry picked from commit 56057900)
      89f7475d
    • J
      iscsi: Add exit status checking for virISCSIGetSession · da723464
      John Ferlan 提交于
      Utilize the exit status parameter for virCommandRunRegex in order to
      check the return error from the 'iscsiadm --mode session' command.
      Without this enabled, if there are no sessions running then virCommandRun
      would have displayed an error such as:
      
          2016-05-13 15:17:15.165+0000: 10920: error : virCommandWait:2553 :
                     internal error: Child process (iscsiadm --mode session)
                     unexpected exit status 21: iscsiadm: No active sessions.
      
      It is possible that for certain paths (when probe is true) we only care
      whether it's running or not to make certain decisions.  Spitting out
      the error for those paths is unnecessary.
      
      If we do have a situation where probe = false and there's an error,
      then display the error from iscsiadm if it's there.
      
      (cherry picked from commit 8f54e0d6)
      da723464
    • J
      util: Add exitstatus parameter to virCommandRunRegex · 5e08a538
      John Ferlan 提交于
      Rather than have virCommandRun just spit out the error, allow callers
      to decide to pass the exitstatus so the caller can make intelligent
      decisions based on the error.
      
      (cherry picked from commit 8b104947)
      5e08a538
  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 19 次提交
  5. 21 4月, 2016 1 次提交
  6. 20 4月, 2016 4 次提交