1. 19 7月, 2016 3 次提交
  2. 14 7月, 2016 1 次提交
  3. 30 6月, 2016 3 次提交
  4. 28 6月, 2016 1 次提交
    • M
      virCgroupValidateMachineGroup: Reflect change in CGroup struct naming · 7e20f44d
      Michal Privoznik 提交于
      Fron c3bd0019 on instead of creating the following path for
      cgroups:
      
        /sys/fs/cgroupX/$name.libvirt-$driver
      
      we generate rather more verbose one:
      
        /sys/fs/cgroupX/$driver-$id-$name.libvirt-$driver
      
      where $name is optional and included iff contains allowed chars.
      See original commit for more reasoning. Now, problem with the
      original commit is that we are unable to start any LXC domain
      after it. Because when starting LXC container, the CGroup layout
      is created by our lxc_controller process and then detected and
      validated by libvirtd. The validation is done by trying to match
      detected layout against all the possible patterns for cgroup
      paths that we've ever had. And the commit in question forgot to
      update this part of the code.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      (cherry picked from commit fb377701)
      7e20f44d
  5. 24 6月, 2016 15 次提交
  6. 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
  7. 06 5月, 2016 1 次提交
  8. 05 5月, 2016 8 次提交
    • C
      Prep for release 1.3.3.1 · 5e57b02b
      Cole Robinson 提交于
      5e57b02b
    • A
      spec: Use proper indentation · 5282f14f
      Andrea Bolognani 提交于
      Commit 1d440008 added some code that was not indented properly
      and broke syntax-check. Fix it.
      
      (cherry picked from commit a528ae7f)
      5282f14f
    • D
      libvirt.spec: remove duplicate files from -docs package · b4d8e5d3
      Daniel P. Berrange 提交于
      Previous commit moved some lists out of the -devel package
      and into the -docs package
      
        commit feffcc03
        Author: Cole Robinson <crobinso@redhat.com>
        Date:   Wed Apr 13 10:37:42 2016 -0400
      
          spec: Only pull in API docs with -devel package
      
      What was not realized is that the rule 'libvirt-docs/*'
      and ' docs/*.html docs/html docs/*.gif' actually point
      to the exact same content. ie, we had previously included
      the website HTML in *both* the -docs and -devel packages.
      
      So this change ended up listing the files twice, which
      caused RPM to print a load of warnings:
      
      warning: File listed twice: /usr/share/doc/libvirt-docs/html
      warning: File listed twice: /usr/share/doc/libvirt-docs/html/32favicon.png
      warning: File listed twice: /usr/share/doc/libvirt-docs/html/404.html
      warning: File listed twice: /usr/share/doc/libvirt-docs/html/acl.html
      warning: File listed twice: /usr/share/doc/libvirt-docs/html/aclpolkit.html
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      (cherry picked from commit d6c25c34)
      b4d8e5d3
    • C
      network: Fix segfault on daemon reload · 1083c0bd
      Cole Robinson 提交于
      We will segfault of a daemon reload picks up a new network config
      that needs to be autostarted. We shouldn't be passing NULL for
      network_driver here. This seems like it was missed in the larger
      rework in commit 1009a61e
      
      (cherry picked from commit 26af7e4e)
      1083c0bd
    • S
      send default USB controller in xml to destination during migration · 6bc1f546
      Shivaprasad G Bhat 提交于
      The default USB controller is not sent to destination as the older versions
      of libvirt(0.9.4 or earlier as I see in commit log of 409b5f54) didn't
      support them. For some archs where the support started much later can
      safely send the USB controllers without this worry. So, send the controller
      to destination for all archs except x86. Moreover this is not very applicable
      to x86 as the USB controller has model ich9_ehci1 on q35 and for pc-i440fx,
      there cant be any slots before USB as it is fixed on slot 1.
      
      The patch fixes a bug that, if the USB controller happens to occupy
      a slot after disks/interfaces and one of them is hot-unplugged, then
      the default USB controller added on destination takes the smallest slot
      number and that would lead to savestate mismatch and migration
      failure. Seen and verified on PPC64.
      Signed-off-by: NShivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
      (cherry picked from commit 192a53e0)
      6bc1f546
    • N
      virsh: Fix support for 64 migration options · 58f53d23
      Nikolay Shirokovskiy 提交于
      Add ULL suffix to all related operands of << or shift will give
      all zeros instead of correct mask.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      (cherry picked from commit 4d28d093)
      58f53d23
    • M
      qemu: Regenerate VNC socket paths · 082deb52
      Martin Kletzander 提交于
      Similarly to what commit 71408079 did with some internal paths,
      clear vnc socket paths that were generated by us.  Having such path in
      the definition can cause trouble when restoring the domain.  The path is
      generated to the per-domain directory that contains the domain ID.
      However, that ID will be different upon restoration, so qemu won't be
      able to create that socket because the directory will not be prepared.
      
      To be able to migrate to older libvirt, skip formatting the socket path
      in migratable XML if it was autogenerated.  And mark it as autogenerated
      if it already exists and we're parsing live XML.
      
      Best viewed with '-C'.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1326270Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      (cherry picked from commit 55320c23)
      082deb52
    • P
      qemu: conf: Set default logging approach in virQEMUDriverConfigNew · 086b022d
      Peter Krempa 提交于
      Instead of setting the default qemu stdio logging approach in
      virQEMUDriverConfigLoadFile set it in virQEMUDriverConfigNew so that
      it's properly set even when the config is not present.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1325075
      (cherry picked from commit 63e2b766)
      086b022d