From f15af5f267b812c08ae3a3d3a8e40567c936689e Mon Sep 17 00:00:00 2001 From: john cooper <john.cooper@redhat.com> Date: Mon, 11 Jan 2010 19:57:46 -0200 Subject: [PATCH 3/3] Allow export of sse4.1/sse4.2 cpuid flags to guest.. BZ #518090 RH-Author: john cooper <john.cooper@redhat.com> Message-id: <4B4B82BA.1040302@redhat.com> Patchwork-id: 6176 O-Subject: Allow export of sse4.1/sse4.2 cpuid flags to guest.. BZ #518090 Bugzilla: 518090 RH-Acked-by: Avi Kivity <avi@redhat.com> RH-Acked-by: Juan Quintela <quintela@redhat.com> RH-Acked-by: Itamar Heim <iheim@redhat.com> Resolves rhel5.5 case: https://bugzilla.redhat.com/show_bug.cgi?id=518090 Minimally add +sse4.1 / +sse4.2 cpuid flags to '-cpu' argument, pass through to guest. Export to guest verified via x86info. Inclusion of these cpuid flags in upstream qemu is currently underway. -john Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> --- qemu/target-i386/helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu/target-i386/helper.c b/qemu/target-i386/helper.c index cc11124..7f80235 100644 --- a/qemu/target-i386/helper.c +++ b/qemu/target-i386/helper.c @@ -53,7 +53,7 @@ static void add_flagname_to_bitmaps(char *flagname, uint32_t *features, static const char *ext_feature_name[] = { "pni" /* Intel,AMD sse3 */, NULL, NULL, "monitor", "ds_cpl", "vmx", NULL /* Linux smx */, "est", "tm2", "ssse3", "cid", NULL, NULL, "cx16", "xtpr", NULL, - NULL, NULL, "dca", NULL, NULL, NULL, NULL, "popcnt", + NULL, NULL, "dca", "sse4.1", "sse4.2", NULL, NULL, "popcnt", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }; static const char *ext2_feature_name[] = { -- 1.6.3.rc4.29.g8146