Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755120AbbGJQJM (ORCPT ); Fri, 10 Jul 2015 12:09:12 -0400 Received: from mga09.intel.com ([134.134.136.24]:7449 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932155AbbGJQJC (ORCPT ); Fri, 10 Jul 2015 12:09:02 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,447,1432623600"; d="scan'208";a="726520376" Message-ID: <559FECF8.5090205@linux.intel.com> Date: Sat, 11 Jul 2015 00:04:08 +0800 From: Xiao Guangrong User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org CC: joerg.roedel@suse.de Subject: Re: [PATCH] KVM: svm: remove KVM_QUIRK_CD_NW_CLEARED quirk References: <1436529693-9743-1-git-send-email-pbonzini@redhat.com> In-Reply-To: <1436529693-9743-1-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 846 Lines: 20 On 07/10/2015 08:01 PM, Paolo Bonzini wrote: > We can disable CD unconditionally when there is no assigned device. > KVM now forces guest PAT to all-writeback in that case, so it makes > sense to also force CR0.CD=0. > > When there are assigned devices, emulate cache-disabled operation > through the page tables. This behavior is consistent with VMX, > where CD/NW are not touched by vmentry/vmexit. > > Note that buggy firmware that does not clear CD/NW is _seriously_ > old: SeaBIOS for example has been doing it since October 2008. Reviewed-by: Xiao Guangrong -- 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/