1. 17 4月, 2019 1 次提交
  2. 12 4月, 2019 3 次提交
  3. 11 4月, 2019 5 次提交
  4. 03 4月, 2019 1 次提交
  5. 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
  6. 22 3月, 2019 23 次提交
  7. 14 3月, 2019 1 次提交
  8. 13 3月, 2019 1 次提交
  9. 12 3月, 2019 1 次提交
  10. 11 3月, 2019 2 次提交