From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 340A6C3ABA3 for ; Thu, 1 May 2025 18:41:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:Cc:To:From: Subject:Message-ID:References:Mime-Version:In-Reply-To:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6OIbU+P+6LX7gXLQRg/LGs6gF16rvs92LA9pz4G+MTw=; b=a+u4nFT4M6m6XGGfJ9HbroAnRa 86FePGei63VNn/pzgiO8yBoH+TUL8eH9BbukXmFrs9dVuSz1G8g6XLkZAFOd5loZBaRQc26ZdtReD e4hbj5abKPhALFIeWMcEOoG4vpEB70nb/6bBUmh7j2BCyUif138kOhSVPCX/iWts7UHK3x7dChj6o JnAQ9uOmgrhgy4xVNU5Opdl6IAwC9HLW2axcRp8jfWbVbW2vRvNC1SaWxHgwgzupLZyDm+omLVWEj 5ALRmUTEGLb/LknxXHU+Qd+qWjCOKvKmVx8Q/gNlGJVTri5VmKlh4CgMIC0Fibeuo2O/6iVXfAJAL wUsiX00w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uAYqK-0000000GOke-1WCR; Thu, 01 May 2025 18:41:08 +0000 Received: from mail-pl1-x649.google.com ([2607:f8b0:4864:20::649]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uAYim-0000000GMwd-2i5G for linux-arm-kernel@lists.infradead.org; Thu, 01 May 2025 18:33:22 +0000 Received: by mail-pl1-x649.google.com with SMTP id d9443c01a7336-22651aca434so10604155ad.1 for ; Thu, 01 May 2025 11:33:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1746124399; x=1746729199; darn=lists.infradead.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=6OIbU+P+6LX7gXLQRg/LGs6gF16rvs92LA9pz4G+MTw=; b=u5el3O9O+TR2f9esv2LLYG7Fce7zWDVGyV/sU1D8Dqf2VkiGtgMr7pZu9sQ/KLpdxl c2UcKKxOrrq7nZ2fVLciLdiCcEThYr6bCw7ZgjCjKpYqP9j4CIAr82oYJF+k4j+XFBjp GwgIb99DfBkiggSX+spPaN7hSw2vdZpZ78HCtQvGgRVbDqj61VxEOzPK2iQWkqypSe8k OtbA51b8xWtHX5viKhq7bZv775+IYeKtUZGd1oeeKqL546McmgO3GzvSbutNdWSLMsJO SMx6nePyJp5GG217YC8OebH6Wa+mPj4anAiWvO7vMYHMijfqNfpHYC8EcAEkzf8Qhu04 CQtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746124399; x=1746729199; 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=6OIbU+P+6LX7gXLQRg/LGs6gF16rvs92LA9pz4G+MTw=; b=fasHinVBGy8iNU+25Q1DIs3payuR7TEbBqFKSVmQ4HOkTrxraZY5RkAHTnUKqLi2b6 XQWT/EhrzHW5huhsqTL0CJbGDA3EjxNmp9n1ctuFP/YFcyYhcBCFx1MQimUCOLqhKS2U roMbK2cybIR+uMtKdGZRmMuC/sjwwhqCtYRyHOibngud5U9XwTyRx2tQp7ycdbozGg76 gad+50s+XDh56i3GGuGugq7+doFEOM5Csjah6OarqyC6QUS5AIKlndyEHMwMPDV1L53z IKmjZHkJCILrSHJCw1JE+vsK4Y7aWTOkNQl1L2GIJi+g6cp3ifJ+OKbfvtKbjQlvoKwC V0Fw== X-Forwarded-Encrypted: i=1; AJvYcCVyiZrfVPShHLXxbTXO1gBF7zkZAF7YhYnOIXpDgoROkYzZsMy3FbCIYkTbx7ta3FO76caDnxB3EwpstgcGzS9O@lists.infradead.org X-Gm-Message-State: AOJu0Yxw7x3+D9Ur1kmE3h4y0do+OkLZLqv0Tj/dHj2jS/wFP7hM7gzH E172im6ShFUgmTkWWpBFiSkM3NGzjQtbPs2zBLcnzYW2GP0NXWQMG9rAEqu57A6RavHLezqY2UJ YXeWkzNDumA== X-Google-Smtp-Source: AGHT+IFt78ttcTKk2SPQ8BT1FrQ1uThUJelTODuNzJi0Vzk5E6Lu1cEhiJVjoBqjNinGr2mXNSf2Udc+HEafiQ== X-Received: from pjuj6.prod.google.com ([2002:a17:90a:d006:b0:2fa:2661:76ac]) (user=dmatlack job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:520f:b0:308:637c:74f2 with SMTP id 98e67ed59e1d1-30a4e5bc6dbmr294105a91.17.1746124399047; Thu, 01 May 2025 11:33:19 -0700 (PDT) Date: Thu, 1 May 2025 11:32:57 -0700 In-Reply-To: <20250501183304.2433192-1-dmatlack@google.com> Mime-Version: 1.0 References: <20250501183304.2433192-1-dmatlack@google.com> X-Mailer: git-send-email 2.49.0.906.g1f30a19c02-goog Message-ID: <20250501183304.2433192-4-dmatlack@google.com> Subject: [PATCH 03/10] KVM: selftests: Use gpa_t for GPAs in Hyper-V selftests From: David Matlack To: Paolo Bonzini Cc: Marc Zyngier , Oliver Upton , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Anup Patel , Atish Patra , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , David Hildenbrand , Sean Christopherson , David Matlack , Andrew Jones , Isaku Yamahata , Reinette Chatre , Eric Auger , James Houghton , Colin Ian King , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250501_113320_765361_AD303DD6 X-CRM114-Status: GOOD ( 13.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix various Hyper-V selftests to use gpa_t for variables that contain guest physical addresses, rather than gva_t. No functional change intended. Signed-off-by: David Matlack --- tools/testing/selftests/kvm/x86/hyperv_evmcs.c | 2 +- tools/testing/selftests/kvm/x86/hyperv_features.c | 2 +- tools/testing/selftests/kvm/x86/hyperv_ipi.c | 6 +++--- tools/testing/selftests/kvm/x86/hyperv_svm_test.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/kvm/x86/hyperv_evmcs.c b/tools/testing/selftests/kvm/x86/hyperv_evmcs.c index 58f27dcc3d5f..9fa91b0f168a 100644 --- a/tools/testing/selftests/kvm/x86/hyperv_evmcs.c +++ b/tools/testing/selftests/kvm/x86/hyperv_evmcs.c @@ -76,7 +76,7 @@ void l2_guest_code(void) } void guest_code(struct vmx_pages *vmx_pages, struct hyperv_test_pages *hv_pages, - gva_t hv_hcall_page_gpa) + gpa_t hv_hcall_page_gpa) { #define L2_GUEST_STACK_SIZE 64 unsigned long l2_guest_stack[L2_GUEST_STACK_SIZE]; diff --git a/tools/testing/selftests/kvm/x86/hyperv_features.c b/tools/testing/selftests/kvm/x86/hyperv_features.c index 5cf19d96120d..b3847b5ea314 100644 --- a/tools/testing/selftests/kvm/x86/hyperv_features.c +++ b/tools/testing/selftests/kvm/x86/hyperv_features.c @@ -82,7 +82,7 @@ static void guest_msr(struct msr_data *msr) GUEST_DONE(); } -static void guest_hcall(gva_t pgs_gpa, struct hcall_data *hcall) +static void guest_hcall(gpa_t pgs_gpa, struct hcall_data *hcall) { u64 res, input, output; uint8_t vector; diff --git a/tools/testing/selftests/kvm/x86/hyperv_ipi.c b/tools/testing/selftests/kvm/x86/hyperv_ipi.c index 865fdd8e4284..85c2948e5a79 100644 --- a/tools/testing/selftests/kvm/x86/hyperv_ipi.c +++ b/tools/testing/selftests/kvm/x86/hyperv_ipi.c @@ -45,13 +45,13 @@ struct hv_send_ipi_ex { struct hv_vpset vp_set; }; -static inline void hv_init(gva_t pgs_gpa) +static inline void hv_init(gpa_t pgs_gpa) { wrmsr(HV_X64_MSR_GUEST_OS_ID, HYPERV_LINUX_OS_ID); wrmsr(HV_X64_MSR_HYPERCALL, pgs_gpa); } -static void receiver_code(void *hcall_page, gva_t pgs_gpa) +static void receiver_code(void *hcall_page, gpa_t pgs_gpa) { u32 vcpu_id; @@ -85,7 +85,7 @@ static inline void nop_loop(void) asm volatile("nop"); } -static void sender_guest_code(void *hcall_page, gva_t pgs_gpa) +static void sender_guest_code(void *hcall_page, gpa_t pgs_gpa) { struct hv_send_ipi *ipi = (struct hv_send_ipi *)hcall_page; struct hv_send_ipi_ex *ipi_ex = (struct hv_send_ipi_ex *)hcall_page; diff --git a/tools/testing/selftests/kvm/x86/hyperv_svm_test.c b/tools/testing/selftests/kvm/x86/hyperv_svm_test.c index 436c16460fe0..b7f35424c838 100644 --- a/tools/testing/selftests/kvm/x86/hyperv_svm_test.c +++ b/tools/testing/selftests/kvm/x86/hyperv_svm_test.c @@ -67,7 +67,7 @@ void l2_guest_code(void) static void __attribute__((__flatten__)) guest_code(struct svm_test_data *svm, struct hyperv_test_pages *hv_pages, - gva_t pgs_gpa) + gpa_t pgs_gpa) { unsigned long l2_guest_stack[L2_GUEST_STACK_SIZE]; struct vmcb *vmcb = svm->vmcb; -- 2.49.0.906.g1f30a19c02-goog