Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp366107ybv; Wed, 5 Feb 2020 06:59:27 -0800 (PST) X-Google-Smtp-Source: APXvYqwpaLPhtCab1Yt9blCdMFhpMKXslXYqhK9KhItveoIqr5/2VP7QVbjsB+aXZ3K+LJgLZ3oX X-Received: by 2002:a05:6830:1e95:: with SMTP id n21mr27016773otr.25.1580914767840; Wed, 05 Feb 2020 06:59:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580914767; cv=none; d=google.com; s=arc-20160816; b=z3tXf/M6+pu5B0XZX4fzvfDajste1WWpTR8LzDwJeR9otPcI5/Nn7e8mW23R/cBZFt iETG7mpNsHJyFx9zN9wYCABdBlXCFJbvzdm1q7hucZsTtsDUDgfXPk/sce5QaV+lqGZD ZirH7Q6pgB2zTVdPvfkdbbWRG8vJYzjwNqdrHnGJGlWjQX+8zkerp0EZN/Usr+oqceFJ 9qjPcNun098gXAIOte6JqWyG9jmHgu8NZfhDtSsWjl7eJq8dKM0Q4dcLGBvYcn3aWaKH jimU7ktoAiNEbpVgBBjqN0IM5Tf1dRk9vn5V9xMhdyeV3/LqTys4iwgSG3ZKUyf5aKH5 hPaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=QK9rDhAQMTvm/4oE1owAxCKM6SK1FUKWk+UU1I8wspU=; b=UGvOAkxfs+fzjMDgnki2IBw0Xn+pGieVDImOD9gGUlWYoSHg5bPr8eDvKObqlLBE1x tIdRKQ8wDCDoclD88xQvbdpvLFf34TPdWaozme5QvOYyuPfZnuJuL0wgjaNjIZ8ad7o0 2yfs75bUD+QBKOmeALt95lMxoyU6iIrWSZ/pYkZBKBR1bGaYcgAigVK7Hq9QYwZIp0o4 IQM46/+rrgEo+ZQ/EC2/mz1p0xkl9BR1F2rZ8LMpjfCYuHD1ux2fs1+mSVtm5fOALOSF j8od+HzBIXKvuw7jPUfiNRHlp861sVPgOAR4FLAAYqp9EcBhvy1pc5rDRct1QJHmop1S 9rAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Don0MEq7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si13461698otp.69.2020.02.05.06.59.15; Wed, 05 Feb 2020 06:59:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Don0MEq7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727452AbgBEO5B (ORCPT + 99 others); Wed, 5 Feb 2020 09:57:01 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:51450 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727104AbgBEO5A (ORCPT ); Wed, 5 Feb 2020 09:57:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580914619; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QK9rDhAQMTvm/4oE1owAxCKM6SK1FUKWk+UU1I8wspU=; b=Don0MEq7VPayXQ1EBvjikjF+rsRCs2LLY/yrP6gleLjkH4wCTWjmyZHZiWxf9iXWjORz87 4HUR/IPGT63h8lBeczHKuq+TdJHBvQqSuBh04OSB55GyXGVkgIa1rXhXaeuIJgSGFrBdPP K1zr0hn0sGi7CWPAEpbRFp+9kNYkin4= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-211-DNBfUdS7N8CoqCrZ_es0eg-1; Wed, 05 Feb 2020 09:56:57 -0500 X-MC-Unique: DNBfUdS7N8CoqCrZ_es0eg-1 Received: by mail-wr1-f70.google.com with SMTP id u8so1302646wrp.10 for ; Wed, 05 Feb 2020 06:56:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QK9rDhAQMTvm/4oE1owAxCKM6SK1FUKWk+UU1I8wspU=; b=eXPYOSzmalt9S0mWdOSicHCg+tLuqkXQjfTGpBcFQHwi1thFtZIDXvp+7nzd+e22hu qxdTEeJY8pK+4gru2OYRNEnohDUFGKqusyfC0wFz8JWg3Zut7VMArkk2Q3gQNSVyt6pv QJWsd8P6XjGGZfQMj0Yfwz3DPtysdlYRBzvd5k7UNTs7iHKs1tWeO1L4swAk1qZKjxWy BUJAR/pz7i2BArCxYB7zZZPH1o1tpoPTE3YUlBq52AvezE38aZvJQDRpgFDsyBRm2VUY o4xHCc4eDtyvYdrRcejNC1M59TjHlIB9TM2MpnIR0uYbovO8KV8RNevHQoVrIGW9r5F5 nZGw== X-Gm-Message-State: APjAAAUBY/WvGWOYoVCCd8O3+AKBV31MhnDrz4IhhLGitqEHLchiQchB FlNa7c74VLYRfoHhU698vGINdKVlk7jtCGJa/57/zdKTTvJr0/9aG3pypMML0htmU3KFaN9frPU AgMeDchtuaH9vUwh/cl7Q5aDO X-Received: by 2002:adf:e984:: with SMTP id h4mr29308653wrm.275.1580914616566; Wed, 05 Feb 2020 06:56:56 -0800 (PST) X-Received: by 2002:adf:e984:: with SMTP id h4mr29308639wrm.275.1580914616383; Wed, 05 Feb 2020 06:56:56 -0800 (PST) Received: from ?IPv6:2001:b07:6468:f312:a9f0:cbc3:a8a6:fc56? ([2001:b07:6468:f312:a9f0:cbc3:a8a6:fc56]) by smtp.gmail.com with ESMTPSA id f127sm8396652wma.4.2020.02.05.06.56.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Feb 2020 06:56:55 -0800 (PST) Subject: Re: [kvm-unit-tests PATCH] x86: pmu: Test WRMSR on a running counter To: Eric Hankland , Jim Mattson , Peter Shier Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org References: <20200204012504.9590-1-ehankland@google.com> From: Paolo Bonzini Message-ID: Date: Wed, 5 Feb 2020 15:56:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20200204012504.9590-1-ehankland@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/02/20 02:25, Eric Hankland wrote: > Ensure that the value of the counter was successfully set to 0 after > writing it while the counter was running. > > Signed-off-by: Eric Hankland > --- > x86/pmu.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/x86/pmu.c b/x86/pmu.c > index cb8c9e3..8a77993 100644 > --- a/x86/pmu.c > +++ b/x86/pmu.c > @@ -419,6 +419,21 @@ static void check_rdpmc(void) > report_prefix_pop(); Queued, thanks. Paolo