Re: [PATCH v2] Move the FIPS detection from capabilities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/18/2014 09:57 PM, Eric Blake wrote:
On 09/18/2014 12:01 PM, Pavel Hrdina wrote:
We are not detecting the presence of FIPS from QEMU, but from procfs and
that means it's not QEMU capability. It was decided that we will pass
this flag to QEMU even if it's not supported by old QEMU binaries.

This patch also reverts changes done by commit a21cfb0f to
qemucapabilitestest and implements a new test case in qemuxml2argvtest.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1135431

Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---

@@ -183,19 +176,16 @@ mymain(void)

      data.xmlopt = xmlopt;

-#define DO_TEST_FULL(name, use_fips)                 \
-    data.base = name;                                \
-    data.fips = use_fips;                            \
-    if (virtTestRun(name, testQemuCaps, &data) < 0)  \
+#define DO_TEST(name) \
+    data.base = name; \
+    if (virtTestRun(name, testQemuCaps, &data) < 0) \

We are not very consistent on whether multiline macros should align the
\ to the same column.

That's true, I've changed the align of '\' to the same column.


          ret = -1

Eww - we really did that in a multiline macro?  I'd much rather fix
things to use:

do {
   data.base = name;
   if (virtTestRun(name, testQemuCaps, &data) < 0)
     ret = -1;
} while (0)

Thanks, pushed with this change.

Pavel


as long as we are touching the code.

ACK.


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]