[libvirt] [PATCH] qemu: Filter ARAT CPU feature from host-model

Martin Kletzander mkletzan at redhat.com
Tue Feb 14 12:41:09 UTC 2017


On Mon, Nov 21, 2016 at 05:00:48PM +0100, Jiri Denemark wrote:
>ARAT feature was first introduced in QEMU 2.4.0, which means host-model
>CPU mode is unusable with QEMU < 2.4.0 on any host CPU which supports
>ARAT. Let's not include this feature in host-model CPUs unless a user
>explicitly asks for it.
>
>Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
>---
>
>Notes:
>    We will do this properly in the future since we will ask QEMU what CPU
>    features it understands and what it thinks about host CPU. However, the
>    required QMP interface is not upstream yet.
>
> src/qemu/qemu_capabilities.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
>diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
>index cfd090c3f..2da4c76ab 100644
>--- a/src/qemu/qemu_capabilities.c
>+++ b/src/qemu/qemu_capabilities.c
>@@ -2959,7 +2959,8 @@ virQEMUCapsCPUFilterFeatures(const char *name,
> {
>     if (STREQ(name, "cmt") ||
>         STREQ(name, "mbm_total") ||
>-        STREQ(name, "mbm_local"))
>+        STREQ(name, "mbm_local") ||
>+        STREQ(name, "arat"))
>         return false;
>

ACK

>     return true;
>--
>2.11.0.rc2
>
>--
>libvir-list mailing list
>libvir-list at redhat.com
>https://www.redhat.com/mailman/listinfo/libvir-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170214/9274b526/attachment-0001.sig>


More information about the libvir-list mailing list