[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b0a41ecb-0a33-3824-aaa2-a3e88288fa63@redhat.com>
Date: Wed, 23 Nov 2016 12:31:14 +0100
From: Paolo Bonzini <pbonzini@...hat.com>
To: David Matlack <dmatlack@...gle.com>, kvm@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, jmattson@...gle.com,
rkrcmar@...hat.com
Subject: Re: [PATCH 2/4] KVM: nVMX: fix checks on CR{0,4} during virtual VMX
operation
On 23/11/2016 02:14, David Matlack wrote:
> +static bool fixed_bits_valid(u64 val, u64 fixed0, u64 fixed1)
> +{
> + return ((val & fixed0) == fixed0) && ((~val & ~fixed1) == ~fixed1);
> +}
> +
This is the same as vmx_control_verify (except with u64 arguments
instead of u32).
Paolo
Powered by blists - more mailing lists