[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <cea84a43-e400-54b9-a6bc-3ad834c17880@redhat.com>
Date: Thu, 23 Apr 2020 15:09:50 +0200
From: Paolo Bonzini <pbonzini@...hat.com>
To: Jim Mattson <jmattson@...gle.com>,
Vitaly Kuznetsov <vkuznets@...hat.com>
Cc: Jon Cargille <jcargill@...gle.com>,
David Matlack <dmatlack@...gle.com>,
Sean Christopherson <sean.j.christopherson@...el.com>,
Wanpeng Li <wanpengli@...cent.com>,
Joerg Roedel <joro@...tes.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
"H. Peter Anvin" <hpa@...or.com>,
the arch/x86 maintainers <x86@...nel.org>,
kvm list <kvm@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kvm: add capability for halt polling
On 22/04/20 23:36, Jim Mattson wrote:
>>> + case KVM_CAP_HALT_POLL: {
>>> + if (cap->flags || cap->args[0] != (unsigned int)cap->args[0])
>>> + return -EINVAL;
>>> +
>>> + kvm->max_halt_poll_ns = cap->args[0];
>> Is it safe to allow any value from userspace here or would it maybe make
>> sense to only allow [0, global halt_poll_ns]?
> Would that restriction help to get this change accepted?
>
No, in the sense that I'm applying it already.
Paolo
Powered by blists - more mailing lists