Re: [RFC PATCH] kvm: Enable -cpu option to hide KVM

Alex Williamson
2014-06-02T14:42:14Z

On Mon, 2014-06-02 at 09:09 +0200, Paolo Bonzini wrote:
> Il 01/06/2014 23:11, Alex Williamson ha scritto:
> >> >
> >> > It's really a nit, but I think "kvm=no" is preferrable (more consistent
> >> > with how hyper-v leaves are enabled).
> > Happy to oblige, but I'm not sure what I'm looking for. We enably
> > hyper-v leaves if hyperv_enabled(), which seems to boil down to the kvm
> > kernel supporting KVM_CAP_HYPERV and one or more cpu->hyperv_foo
> > features enabled. What's the commandline option I'm looking for that
> > has some sort of hyper-v=on|off? Thanks,
>
> Same as your "no-kvm", just with the default flipped from false to true.

Ah, easy enough. Do we want to limit the scope a bit by indicating
exactly what is getting disabled, perhaps kvm-msr=on|off? Thanks,

Alex