qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [Qemu-commits] [COMMIT 883ecbf] Remove noisy printf whe


From: Avi Kivity
Subject: [Qemu-devel] Re: [Qemu-commits] [COMMIT 883ecbf] Remove noisy printf when KVM masks CPU features
Date: Sat, 09 May 2009 11:54:24 +0300
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

Anthony Liguori wrote:
From: Anthony Liguori <address@hidden>

Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/target-i386/helper.c b/target-i386/helper.c
index bdf242b..5c03e3a 100644
--- a/target-i386/helper.c
+++ b/target-i386/helper.c
@@ -102,7 +102,6 @@ static void kvm_trim_features(uint32_t *features, uint32_t 
supported,
     for (i = 0; i < 32; ++i) {
         mask = 1U << i;
         if ((*features & mask) && !(supported & mask)) {
-            printf("Processor feature %s not supported by kvm\n", names[i]);
             *features &= ~mask;
         }
     }

That was intentional, I didn't want to silently drop features the user requested as those may impact live migration or load/save (or application performance).

Maybe it's better to only do that if -cpu was specified on the command line; and exit() as well. The user can easily pick up the missing bits and remove them from the requested cpu features.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]