1. 05 4月, 2017 6 次提交
  2. 04 4月, 2017 17 次提交
  3. 03 4月, 2017 7 次提交
    • A
      tests: Test ACPI, UEFI requirements · deb38c45
      Andrea Bolognani 提交于
      Make sure every combination of ACPI and UEFI works, or fails to
      work, as expected.
      deb38c45
    • A
      qemu: Enforce ACPI, UEFI requirements · 396ca36c
      Andrea Bolognani 提交于
      Depending on the architecture, requirements for ACPI and UEFI can
      be different; more specifically, while on x86 UEFI requires ACPI,
      on aarch64 it's the other way around.
      
      Enforce these requirements when validating the domain, and make
      the error message more accurate by mentioning that they're not
      necessarily applicable to all architectures.
      
      Several aarch64 test cases had to be tweaked because they would
      have failed the validation step otherwise.
      396ca36c
    • A
      qemu: Advertise ACPI support for aarch64 guests · 560335c3
      Andrea Bolognani 提交于
      So far, libvirt has assumed that only x86 supports ACPI,
      but that's inaccurate since aarch64 supports it too.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1429509
      560335c3
    • A
      qemu: Remove redundant capabilities · 5fbb16ba
      Andrea Bolognani 提交于
      Now that the NO_ACPI and NO_HPET capabilities are set
      automatically by virQEMUCapsInitQMPBasicArch() if
      appropriate for the architecture, they shouldn't be
      used manually to avoid masking bugs.
      5fbb16ba
    • A
      tests: Initialize basic capabilities properly · 1cf3e52a
      Andrea Bolognani 提交于
      The capabilities used in test cases should match those used
      during normal operation for the tests to make any sense.
      
      This results in the generated command line for a few test
      cases (most notably non-x86 test cases that were wrongly
      assuming they could use -no-acpi) changing.
      1cf3e52a
    • A
      qemu: Split virQEMUCapsInitArchQMPBasic() · a8fc7ef8
      Andrea Bolognani 提交于
      Instead of having a single function that probes the
      architecture from the monitor and then sets a bunch of
      basic capabilities based on it, have a separate function
      for each part: virQEMUCapsInitQMPArch() only sets the
      architecture, and virQEMUCapsInitQMPBasicArch() only sets
      the capabilities.
      
      This split will be useful later on, when we will want to
      set basic capabilities from the test suite without having
      to go through the pain of mocking the monitor.
      a8fc7ef8
    • A
      news: Allow empty <section> elements · a26603f6
      Andrea Bolognani 提交于
      Creating dummy <change> elements was a workaround for the
      HTML DTD not allowing empty <ul> elements, but we can do
      better by tweaking the the XSLT stylesheet.
      a26603f6
  4. 01 4月, 2017 1 次提交
  5. 03 4月, 2017 9 次提交
    • P
      storage: driver: Remove unavailable transient pools after restart · f3a8e80c
      Peter Krempa 提交于
      If a transient storage pool is deemed inactive after libvirtd restart it
      would not be deleted from the list. Reuse virStoragePoolUpdateInactive
      along with a refactor necessary to properly update the state.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1242801
      f3a8e80c
    • P
      storage: driver: Split out code fixing pool state after deactivation · aced6b23
      Peter Krempa 提交于
      After a pool is made inactive the definition objects need to be updated
      (if a new definition is prepared) and transient pools need to be
      completely removed. Split out the code doing these steps into a separate
      function for later reuse.
      aced6b23
    • P
      storage: backend: Use correct stringifier for pool type · 894133a3
      Peter Krempa 提交于
      When registering a storage poll backend, the code would use
      virStorageTypeToString instead of virStoragePoolTypeToString. The
      following message would be logged:
      
      virDriverLoadModuleFunc:71 : Lookup function 'virStorageBackendSCSIRegister'
      virStorageBackendRegister:174 : Registering storage backend '(null)'
      894133a3
    • P
      schema: Introduce schema for the news.xml file · fe26b285
      Peter Krempa 提交于
      Since this file gets changed (and broken) rather often, introduce a
      schema file so that the test suite can validate it.
      fe26b285
    • P
      news: Introduce rules for the schema file and fix offending lines · 7bbdb29c
      Peter Krempa 提交于
      Add stricter rules for the news file and fix offending entries.
      7bbdb29c
    • P
      tests: schema: Add possibility to validate individual files · e19505da
      Peter Krempa 提交于
      Sometimes it may be desired to validate individual files against a
      schema. Refactor the data structures to unify them and introduce a new
      macro DO_TEST_FILE(schema, xmlfile) which will test the XML file against
      the given schema file.
      e19505da
    • M
      Introduce and use virDomainDiskEmptySource · 462c4b66
      Michal Privoznik 提交于
      Currently, if we want to zero out disk source (e,g, due to
      startupPolicy when starting up a domain) we use
      virDomainDiskSetSource(disk, NULL). This works well for file
      based storage (storage type file, dir, or block). But it doesn't
      work at all for other types like volume and network.
      
      So imagine that you have a domain that has a CDROM configured
      which source is a volume from an inactive pool. Because it is
      startupPolicy='optional', the CDROM is empty when the domain
      starts. However, the source element is not cleared out in the
      status XML and thus when the daemon restarts and tries to
      reconnect to the domain it refreshes the disks (which fails - the
      storage pool is still not running) and thus the domain is killed.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      462c4b66
    • M
    • M
      networkUpdateState: Create virMacMap module more frequently · 3054dacf
      Michal Privoznik 提交于
      The virMacMap module is there for dumping [domain, <list of is
      MACs>] pairs into a file so that libvirt_guest NSS module can use
      it. Whenever a interface is allocated from network (e.g. on
      domain<F2> startup or NIC hotplug), network is notified and so is
      virMacMap module subsequently. The module update functions
      networkMacMgrAdd() and networkMacMgrDel() gracefully handle the
      case when there's no module. The problem is, the module is
      created if and only if network is freshly started, or if the
      daemon restarts and network previously had the module.
      
      This is not very user friendly - if users want to use the NSS
      module they need to destroy their network and bring it up again
      (and subsequently all the domains using it).
      
      One disadvantage of this approach implemented here is that one
      may get just partial results: any already running network does
      not record mac maps, thus only newly plugged domains will be
      stored in the module. The network restart scenario is not touched
      by this of course. But one can argue that older libvirts had
      never recorded the mac maps anyway.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      3054dacf