Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7170890rwb; Mon, 12 Dec 2022 10:58:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ChJ5Mjf/m/1yVOT4mmZc+TZnprQdie4gmrXc6DCT8og2sHhpWK89PpCzqKRGt/PqaHo// X-Received: by 2002:a17:903:1247:b0:189:acee:7aa4 with SMTP id u7-20020a170903124700b00189acee7aa4mr17302936plh.65.1670871490119; Mon, 12 Dec 2022 10:58:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670871490; cv=none; d=google.com; s=arc-20160816; b=Ii9KqE/i+azivPOEW/phw5cGdzGRzwDOy7q2uxiJPlqlwo/tWYP97DtMFY+GtI2w8N mxOYG1pt0pJymkX770pSTotOSOvO3CMX4LyD+AYhgTh1Ixi1N2ewnF0SkxrAlicJmhao UOXw9kA8z2fRqQJJnHN0utUJyIo10kfj40eZ+jhy622boYOpTgi+ZNp0HYtSGR3cWaJZ B76MHf5h64qovF2EISYHy4gsRGybt5DwP93I7aPb/rATkThaGAKHJMjCbhj3ic6SLlsJ mMNfQpYo0M9W7zV06zR4cZQkqh9iobwtXz0FEXOHNyVv5iLZ7BJuItmjLxxTP+OiNwFy CynQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=x5QngdHQiKQfEuJYIiEzFXAizHnjRUO3mh7eHj4eZ3w=; b=b96HKPxp6ODFrTl4Ydxixfcck90CheR1RrPkhydgjxmfjyj7Ldo0MX02zZnRw2EGhu lVrz4jLRCrW/wr2t3+WBp3WzU34QPS4FawG5XU3EVuOGXk0oUg9RVCzsfMoY5NiLM7E4 ewR0IXfRTEbettSTDTGIw4EEmrz79vfGW8KaRUxbtI/Qx3MNOhyaUVfI3JqvJw1BYQN6 td2u3+tr7Bti+bbSV+LZU7YC1K99h+C+ZnqfskAVyVN5DH8EtkfisRsejacLtVM3SJQ0 zLk9c9dqSCLXDskJceTY3HGUcurQgo3HoJNVrDWg0Wi8Ilba3+7mhGrxdHbXw9W7eKJP qOpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=rdP1+wMz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p17-20020a170902e75100b00189240585a8si11353873plf.292.2022.12.12.10.58.00; Mon, 12 Dec 2022 10:58:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=rdP1+wMz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233655AbiLLSim (ORCPT + 74 others); Mon, 12 Dec 2022 13:38:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233622AbiLLShn (ORCPT ); Mon, 12 Dec 2022 13:37:43 -0500 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D66213D05 for ; Mon, 12 Dec 2022 10:37:42 -0800 (PST) Received: by mail-pj1-x1049.google.com with SMTP id o18-20020a17090aac1200b00219ca917708so449232pjq.8 for ; Mon, 12 Dec 2022 10:37:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=x5QngdHQiKQfEuJYIiEzFXAizHnjRUO3mh7eHj4eZ3w=; b=rdP1+wMzNzcT40yMVG9EmesGEqtj8WetNxbG2ao8AaGcVeiWSJtrO9mjxyuqOOP+dK d/jDekzoXjtR9ksfmyl+xmS2Wqlf9meX9787kRVadr1tpGUOdurqsIR7tRFrrrL/UsDj BehiVYyGedKtL9yglQ2xG49nvJ/Aet8SbOXABV5x4iPwq8SIkEfARjtqQDjGEc/Y2Orw 2D5XcyaRWgUaKlMiYtN0vsxBqW5gk5ADC5tH7tmBYUiegMI3P1DWdTj278HS1W8wMSgU ptS3InxvJ9CMBTDB4iDVmABCIyjG87wIO04Uqa/+Sgj5E25pXVR2owVOfsVLdOVXgTai OTqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=x5QngdHQiKQfEuJYIiEzFXAizHnjRUO3mh7eHj4eZ3w=; b=v2wWUnzGYKOcb4HiZWunyQEKnvBahbjOZeo+ufNPN6UkHQjFiawOJ5xZLBxQkSKoTR 2vxz3hoI/vzRz3JAzFEJOWsdWnJZtkCONjy/mDVG09ZJmLm6UgGYq41zBBzIc/OMD2qq kEOontksatxFO58dCXBT3qmH6iJqln1gYfa9si2VbGKOaXbeEQswtrqjyoXfLNzBC9cy vlj8usYIPYo04oIQQweloPcji2xGN+BWEcMuKtb+0+S6HM4QijdU18QLUp7WRi3KKj3C i3RpkO1iM3buDaTTYony9lCA1P4LSRe7F2tylN4U+AG9DmytgBM0BIw3ieoYoQ/CMP/k DNEQ== X-Gm-Message-State: ANoB5pkQBOcMTwxcOTZIHQV1iJapMh9K2yyezCMREf9ev2Vjoz7mIatt Tn7/gHU4pj+e5J/+1T/ZR/TKEL2Vad89 X-Received: from vipin.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:479f]) (user=vipinsh job=sendgmr) by 2002:aa7:820e:0:b0:573:ab15:1d6f with SMTP id k14-20020aa7820e000000b00573ab151d6fmr85141950pfi.9.1670870261939; Mon, 12 Dec 2022 10:37:41 -0800 (PST) Date: Mon, 12 Dec 2022 10:37:18 -0800 In-Reply-To: <20221212183720.4062037-1-vipinsh@google.com> Mime-Version: 1.0 References: <20221212183720.4062037-1-vipinsh@google.com> X-Mailer: git-send-email 2.39.0.rc1.256.g54fd8350bd-goog Message-ID: <20221212183720.4062037-12-vipinsh@google.com> Subject: [Patch v4 11/13] KVM: selftests: Replace hardcoded Linux OS id with HYPERV_LINUX_OS_ID From: Vipin Sharma To: seanjc@google.com, pbonzini@redhat.com, vkuznets@redhat.com, dmatlack@google.com Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Vipin Sharma Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use HYPERV_LINUX_OS_ID macro instead of hardcoded 0x8100 << 48 Signed-off-by: Vipin Sharma Reviewed-by: Vitaly Kuznetsov --- tools/testing/selftests/kvm/x86_64/hyperv_clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/x86_64/hyperv_clock.c b/tools/testing/selftests/kvm/x86_64/hyperv_clock.c index d576bc8ce823..2ee0af0d449e 100644 --- a/tools/testing/selftests/kvm/x86_64/hyperv_clock.c +++ b/tools/testing/selftests/kvm/x86_64/hyperv_clock.c @@ -104,7 +104,7 @@ static void guest_main(struct ms_hyperv_tsc_page *tsc_page, vm_paddr_t tsc_page_ /* Set Guest OS id to enable Hyper-V emulation */ GUEST_SYNC(1); - wrmsr(HV_X64_MSR_GUEST_OS_ID, (u64)0x8100 << 48); + wrmsr(HV_X64_MSR_GUEST_OS_ID, HYPERV_LINUX_OS_ID); GUEST_SYNC(2); check_tsc_msr_rdtsc(); -- 2.39.0.rc1.256.g54fd8350bd-goog