From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751716AbdGZOsU (ORCPT ); Wed, 26 Jul 2017 10:48:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51608 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750781AbdGZOsT (ORCPT ); Wed, 26 Jul 2017 10:48:19 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com BFB627F351 Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=pbonzini@redhat.com Subject: Re: [RFC/RFT PATCH] KVM: nVMX: fixes to nested virt interrupt injection To: Jim Mattson Cc: LKML , kvm list , Wanpeng Li References: <1500906015-31784-1-git-send-email-pbonzini@redhat.com> From: Paolo Bonzini Message-ID: Date: Wed, 26 Jul 2017 16:48:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 26 Jul 2017 14:48:19 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/07/2017 23:08, Jim Mattson wrote: > > + > + if (vcpu->arch.exception.has_error_code) { > + vmcs_write32(VM_EXIT_INTR_ERROR_CODE, > vcpu->arch.exception.error_code); > > > Should this be vmcs12->vm_exit_intr_error_code > = vcpu->arch.exception.error_code? No, this writes to the vmcs02 and prepare_vmcs12 copies it to the vmcs12. Paolo