[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 1/3] KVM: Add new -cpu best
From: |
Alexander Graf |
Subject: |
Re: [Qemu-devel] [PATCH v2 1/3] KVM: Add new -cpu best |
Date: |
Mon, 2 Jul 2012 16:02:24 +0200 |
On 26.06.2012, at 18:39, Alexander Graf wrote:
> During discussions on whether to make -cpu host the default in SLE, I found
> myself disagreeing to the thought, because it potentially opens a big can
> of worms for potential bugs. But if I already am so opposed to it for SLE, how
> can it possibly be reasonable to default to -cpu host in upstream QEMU? And
> what would a sane default look like?
>
> So I had this idea of looping through all available CPU definitions. We can
> pretty well tell if our host is able to execute any of them by checking the
> respective flags and seeing if our host has all features the CPU definition
> requires. With that, we can create a -cpu type that would fall back to the
> "best known CPU definition" that our host can fulfill. On my Phenom II
> system for example, that would be -cpu phenom.
>
> With this approach we can test and verify that CPU types actually work at
> any random user setup, because we can always verify that all the -cpu types
> we ship actually work. And we only default to some clever mechanism that
> chooses from one of these.
>
> Signed-off-by: Alexander Graf <address@hidden>
Ping :)
Alex
- Re: [Qemu-devel] [PATCH v2 1/3] KVM: Add new -cpu best,
Alexander Graf <=