From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752888AbcEJPMt (ORCPT ); Tue, 10 May 2016 11:12:49 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33429 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751566AbcEJPMp (ORCPT ); Tue, 10 May 2016 11:12:45 -0400 Subject: Re: [PART1 V5 12/13] svm: Do not intercept CR8 when enable AVIC To: Suravee Suthikulpanit , rkrcmar@redhat.com, joro@8bytes.org, bp@alien8.de, gleb@kernel.org, alex.williamson@redhat.com References: <1462388992-25242-1-git-send-email-Suravee.Suthikulpanit@amd.com> <1462388992-25242-13-git-send-email-Suravee.Suthikulpanit@amd.com> Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, wei@redhat.com, sherry.hurwitz@amd.com From: Paolo Bonzini Message-ID: <5731FA67.20309@redhat.com> Date: Tue, 10 May 2016 17:12:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <1462388992-25242-13-git-send-email-Suravee.Suthikulpanit@amd.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/05/2016 21:09, Suravee Suthikulpanit wrote: > +static inline bool svm_in_nested_interrupt_shadow(struct kvm_vcpu *vcpu) > +{ > + return is_guest_mode(vcpu) && (vcpu->arch.hflags & HF_VINTR_MASK); > +} > + A better name (yes, I know I suggested this one) is svm_nested_virtualize_tpr. I can change this when committing. Paolo