1. 11 7月, 2019 3 次提交
    • E
      snapshot: Add VIR_DOMAIN_SNAPSHOT_CREATE_VALIDATE flag · 95f8e323
      Eric Blake 提交于
      We've been doing a terrible job of performing XML validation in our
      various API that parse XML with a corresponding schema (we started
      with domains back in commit dd69a14f, v1.2.12, but didn't catch all
      domain-related APIs, didn't document the use of the flag, and didn't
      cover other XML). New APIs (like checkpoints) should do the validation
      unconditionally, but it doesn't hurt to continue retrofitting existing
      APIs to at least allow the option.
      
      While there are many APIs that could be improved, this patch focuses
      on wiring up a new snapshot XML creation flag through all the
      hypervisors that support snapshots, as well as exposing it in 'virsh
      snapshot-create'.  For 'virsh snapshot-create-as', we blindly set the
      flag without a command-line option, since the XML we create from the
      command line should generally always comply (note that validation
      might cause failures where it used to succeed, such as if we tighten
      the RNG to reject a name of '../\n'); but blindly passing the flag
      means we also have to add in fallback code to disable validation if
      the server is too old to understand the flag.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Acked-by: NPeter Krempa <pkrempa@redhat.com>
      95f8e323
    • E
      snapshot: Add internal option to validate XML against schema · 88ae8b8b
      Eric Blake 提交于
      Similar to VIR_DOMAIN_DEF_PARSE_VALIDATE_SCHEMA; the next patch will
      put it to use with a counterpart public API flag.
      
      No need to change qemudomainsnapshotxml2xmltest to use the flag, since
      the testsuite already has a separate virschematest that does the same.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Acked-by: NPeter Krempa <pkrempa@redhat.com>
      88ae8b8b
    • E
      maint: Drop dead code in check-driverimpls.pl · 4cc5679e
      Eric Blake 提交于
      We no longer need to special-case xenUnified, since 1dac5fbb
      dropped support for that naming scheme.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Acked-by: NPeter Krempa <pkrempa@redhat.com>
      4cc5679e
  2. 10 7月, 2019 3 次提交
  3. 09 7月, 2019 26 次提交
  4. 08 7月, 2019 4 次提交
  5. 06 7月, 2019 4 次提交