From mboxrd@z Thu Jan 1 00:00:00 1970 From: Radim =?utf-8?B?S3LEjW3DocWZ?= Subject: Re: [PATCH] KVM: x86: Add emulation of MSR_SMI_COUNT Date: Tue, 5 Dec 2017 22:09:18 +0100 Message-ID: <20171205210918.GC20099@flask> References: <1510746194-12291-1-git-send-email-liran.alon@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: pbonzini@redhat.com, kvm@vger.kernel.org, idan.brown@oracle.com, Konrad Rzeszutek Wilk To: Liran Alon Return-path: Received: from mx1.redhat.com ([209.132.183.28]:38104 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751946AbdLEVJZ (ORCPT ); Tue, 5 Dec 2017 16:09:25 -0500 Content-Disposition: inline In-Reply-To: <1510746194-12291-1-git-send-email-liran.alon@oracle.com> Sender: kvm-owner@vger.kernel.org List-ID: 2017-11-15 13:43+0200, Liran Alon: > This MSR returns the number of #SMIs that occurred on CPU since > boot. > > It was seen to be used frequently by ESXi guest. > > Patch adds a new vcpu-arch specific var called smi_count to > save the number of #SMIs which occurred on CPU since boot. > It is exposed as a read-only MSR to guest (causing #GP > on wrmsr) in RDMSR/WRMSR emulation code. > MSR_SMI_COUNT is also added to emulated_msrs[] to make sure > user-space can save/restore it for migration purposes. > > Signed-off-by: Liran Alon > Suggested-by: Paolo Bonzini > Reviewed-by: Nikita Leshenko > Reviewed-by: Bhavesh Davda > Signed-off-by: Konrad Rzeszutek Wilk > --- Queued, thanks.