[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFx5n6VJWhY5uNGYWi7ZHhT=FWjDrNK3Q_h5RssNcT0mrQ@mail.gmail.com>
Date: Wed, 13 Jun 2018 07:00:37 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Vitaly Kuznetsov <vkuznets@...hat.com>
Cc: Paolo Bonzini <pbonzini@...hat.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Radim Krčmář <rkrcmar@...hat.com>,
KVM list <kvm@...r.kernel.org>
Subject: Re: [GIT PULL] KVM changes for 4.18 merge window
On Wed, Jun 13, 2018 at 4:00 AM Vitaly Kuznetsov <vkuznets@...hat.com> wrote:
>
> This was reported before by Arnd Bergmann:
>
> https://www.spinics.net/lists/kvm/msg169536.html
>
> but it seems his patch got lost.
So I think his patch is closer to what the code *should* do. Mine was
a big ugly #if around the whole thing, but I really think that *all*
those
if (static_branch_unlikely(&enable_evmcs)...
cases should probably be using IS_ENABLED(CONFIG_HYPERV) too.
Preferably by simply having a helper macro or inline function to do both tests.
I intentionally did just he big brute-force thing, I'm hoping the kvm
hyper-v people will clean this up.
But obviously this also showed a lack of testing.
Linus
Powered by blists - more mailing lists