1. 06 12月, 2018 1 次提交
  2. 03 12月, 2018 3 次提交
  3. 28 11月, 2018 2 次提交
  4. 16 11月, 2018 1 次提交
    • M
      qemu: add memfd source type · 24b74d18
      Marc-André Lureau 提交于
      Add a new memoryBacking source type "memfd", supported by QEMU (when
      the capability is available).
      
      A memfd is a specialized anonymous memory kind. As such, an anonymous
      source type could be automatically using a memfd. However, there are
      some complications when migrating from different memory backends in
      qemu (mainly due to the internal object naming at this point, but
      there could be more). For now, it is simpler and safer to simply
      introduce a new source type "memfd". Eventually, the "anonymous" type
      could learn to use memfd transparently in a separate change.
      
      The main benefits are that it doesn't need to create filesystem files,
      and it also enforces sealing, providing a bit more safety.
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      24b74d18
  5. 15 11月, 2018 5 次提交
  6. 17 10月, 2018 1 次提交
  7. 15 10月, 2018 7 次提交
  8. 09 10月, 2018 1 次提交
  9. 12 9月, 2018 1 次提交
    • L
      conf: correct false boot order error during domain parse · 7ea73429
      Laine Stump 提交于
      virDomainDefCollectBootOrder() is called for every item on the list
      for each type of device. One of the checks it makes is to gather the
      order attributes from the <boot> element of all devices, and assure
      that no two devices have been given the same order.
      
      Since (internally to libvirt, *not* in the domain XML) an <interface
      type='hostdev'> is on both the list of hostdev devices and the list of
      network devices, it will be counted twice, and the code that checks
      for multiple devices with the same boot order will give a false
      positive.
      
      To remedy this, we make sure to return early for hostdev devices that
      have a parent.type != NONE.
      
      This was introduced in commit 5b75a4, which was first in libvirt-4.4.0.
      
      Resolves: https://bugzilla.redhat.com/1601318Signed-off-by: NLaine Stump <laine@laine.org>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      7ea73429
  10. 07 9月, 2018 1 次提交
    • A
      conf: Fix check for chardev source path · 614193fa
      Andrea Bolognani 提交于
      Attempting to use a chardev definition like
      
        <serial type='unix'>
          <target type='isa-serial'/>
        </serial>
      
      correctly results in an error being reported, since the source
      path - a required piece of information - is missing; however,
      the very similar
      
        <serial type='unix'>
          <target type='pci-serial'/>
        </serial>
      
      was happily accepted by libvirt, only to result in libvirtd
      crashing as soon as the guest was started.
      
      The issue was caused by checking the chardev's targetType
      against whitelisted values from virDomainChrChannelTargetType
      without first checking the chardev's deviceType to make sure
      it is actually a channel, for which the check makes sense,
      rather than a different type of chardev.
      
      The only reason this wasn't spotted earlier is that the
      whitelisted values just so happen to correspond to USB and
      PCI serial devices and Xen and UML consoles respectively,
      all of which are fairly uncommon.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1609720Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      614193fa
  11. 06 9月, 2018 2 次提交
  12. 05 9月, 2018 1 次提交
  13. 29 8月, 2018 1 次提交
    • L
      qemu: Validate memory access during validate domain config · fe67e3e2
      Luyao Huang 提交于
      Commit 6534b3c4 tried to raise an error when there is no numa
      nodes by setting access='shared' in the domain config, but added
      a helper called from qemuDomainDeviceDefValidate instead of a
      helper called from qemuDomainDefValidate for XML:
      
        <memoryBacking>
          <hugepages/>
          <access mode='shared'/>
        </memoryBacking>
      
      Since there are no memory devices in the test XML, there would
      be no validation failure, but the test added was still failing.
      Investigating that it turns out that unnecessary XML elements
      were causing the failure (no need for <video>, <graphics>,
      <pm>, usb controller model "piix3-uhci", disk attribute for
      "discard='unmap'", <serial>, <console>, <channel> and a
      memballoon model). Removing all those before moving the method
      caused the test to succeed.
      
      So this patch moves the validation to the right place and
      removes all the unnecessary XML pieces that were causing
      a false validation failure.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1448149#c14Signed-off-by: NLuyao Huang <lhuang@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      fe67e3e2
  14. 28 8月, 2018 5 次提交
  15. 27 8月, 2018 1 次提交
  16. 24 8月, 2018 2 次提交
  17. 21 8月, 2018 4 次提交
  18. 20 8月, 2018 1 次提交
    • E
      tests: sev: Test launch-security with specific QEMU version · 6c50cef8
      Erik Skultety 提交于
      In order to test SEV we need real QEMU capabilities. Ideally, this would
      be tested with -latest capabilities, however, our capabilities are
      currently tied to Intel HW, even the 2.12.0 containing SEV were edited by
      hand, so we can only use that one for now, as splitting the capabilities
      according to the vendor is a refactor for another day. The need for real
      capabilities comes from the extended SEV platform data (PDH, cbitpos,
      etc.) we'll need to cache/parse.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      Acked-by: NPeter Krempa <pkrempa@redhat.com>
      6c50cef8