Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757150AbbGGNX0 (ORCPT ); Tue, 7 Jul 2015 09:23:26 -0400 Received: from cantor2.suse.de ([195.135.220.15]:37837 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757013AbbGGNXS (ORCPT ); Tue, 7 Jul 2015 09:23:18 -0400 Date: Tue, 7 Jul 2015 15:23:14 +0200 From: Joerg Roedel To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, guangrong.xiao@linux.intel.com, alex.williamson@redhat.com, ogerlitz@mellanox.com, amirv@mellanox.com Subject: Re: [PATCH 1/3] KVM: SVM: use NPT page attributes Message-ID: <20150707132314.GJ16233@suse.de> References: <1436273894-42501-1-git-send-email-pbonzini@redhat.com> <1436273894-42501-2-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436273894-42501-2-git-send-email-pbonzini@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 729 Lines: 22 Hi Paolo, On Tue, Jul 07, 2015 at 02:58:12PM +0200, Paolo Bonzini wrote: > +static void svm_set_guest_pat(struct vcpu_svm *svm, u64 *g_pat) > +{ > + struct kvm_vcpu *vcpu = &svm->vcpu; > + > + /* Unlike Intel, AMD takes the guest's CR0.CD into account. > + * > + * AMD doesn't have snooping control in the IOMMU, but if the guest The AMD IOMMU has snooping control, its just called 'Force Coherent' there. The AMD IOMMU driver always sets the FC bit in the page tables. Joerg -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/