[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a6ad902e-f2ce-2df6-5f48-c9eb6e5c75d8@redhat.com>
Date: Tue, 17 Mar 2020 18:40:38 +0100
From: Paolo Bonzini <pbonzini@...hat.com>
To: Sean Christopherson <sean.j.christopherson@...el.com>,
Vitaly Kuznetsov <vkuznets@...hat.com>
Cc: Wanpeng Li <wanpengli@...cent.com>,
Jim Mattson <jmattson@...gle.com>,
Joerg Roedel <joro@...tes.org>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, Xiaoyao Li <xiaoyao.li@...el.com>
Subject: Re: [PATCH 06/10] KVM: nVMX: Convert local exit_reason to u16 in
...enter_non_root_mode()
On 17/03/20 06:29, Sean Christopherson wrote:
>>>
>>> load_vmcs12_host_state(vcpu, vmcs12);
>>> - vmcs12->vm_exit_reason = exit_reason | VMX_EXIT_REASONS_FAILED_VMENTRY;
>>> + vmcs12->vm_exit_reason = VMX_EXIT_REASONS_FAILED_VMENTRY | exit_reason;
>> My personal preference would be to do
>> (u32)exit_reason | VMX_EXIT_REASONS_FAILED_VMENTRY
>> instead but maybe I'm just not in love with implicit type convertion in C.
> Either way works for me. Paolo?
>
Flip a coin? :) I think your version is fine.
Paolo
Powered by blists - more mailing lists