1. 03 4月, 2019 1 次提交
  2. 28 3月, 2019 2 次提交
    • M
      qemuxml2argvtest: Drop dependency between testInfoArgName and virQEMUCapsFlags enums · 97b729ef
      Michal Privoznik 提交于
      Introduced in fdf6c89e, this dependency looks weird. It was
      needed because of the way that while() loop was written - it
      fetches next argument in every iteration. Therefore, our only
      option was for ARG_END to have the same value as QEMU_CAPS_LAST.
      This also meant that QEMU_CAPS_* could have been only at the end
      of the __VA_ARGS__.
      
      This commit reworks the while() loop and removes the dependency.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      97b729ef
    • M
      qemu_capabilities; Drop virQEMUCapsSetVAList · 087a74e1
      Michal Privoznik 提交于
      There is one specific caller (testInfoSetArgs() in
      qemuxml2argvtest.c) which expect the va_list argument to change
      after returning from the virQEMUCapsSetVAList() function.
      However, since we are passing plain va_list this is not
      guaranteed. The man page of stdarg(3) says:
      
        If ap is passed to a function that uses va_arg(ap,type), then
        the value of ap is undefined after the return of that function.
      
      (ap is a variable of type va_list)
      
      I've seen this in action in fact: on i686 the qemuxml2argvtest
      fails on the second test case because testInfoSetArgs() sees
      ARG_QEMU_CAPS and calls virQEMUCapsSetVAList to process the
      capabilities (in this case there's just one
      QEMU_CAPS_SECCOMP_BLACKLIST). But since the changes are not
      reflected in the caller, in the next iteration testInfoSetArgs()
      sees the QEMU capability and not ARG_END.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      087a74e1
  3. 22 3月, 2019 23 次提交
  4. 14 3月, 2019 1 次提交
  5. 13 3月, 2019 1 次提交
  6. 12 3月, 2019 1 次提交
  7. 11 3月, 2019 2 次提交
  8. 05 3月, 2019 1 次提交
    • C
      conf: Add <disk model='virtio-{non-}transitional'/> · 25d05051
      Cole Robinson 提交于
      <disk> devices lack the model= attribute which is used by
      most other device types. bus= mostly acts as one, but it
      serves other purposes too like determing what target=
      prefix to use, and for matching against controller type=
      values.
      
      Extending bus= to handle additional virtio transitional
      devices will complicate apps lives, and it isn't a clean
      mapping anyways. So let's bite the bullet and add a new
      <disk model=X/> attribute, and wire up common handling
      for virtio and virtio-{non-}transitional
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      25d05051
  9. 08 2月, 2019 8 次提交