From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 245FA21ABB1 for ; Fri, 20 Feb 2026 00:42:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771548162; cv=none; b=h9MkdmVnr5qzJ6LD5eGaQuHGCNfHwmf6jXUCDT/5QTjK/eznquOgvs9/MZAPdyBGkQf9/q8RR1iRWc/VvAHX8CgMAEllQPKTSkvgXvSNjTifVtAEyWQ+K91wc2Qt898fRDvQnjmVdXuQU0y6WqfJx/rrNmmzvwiVpvC9lv3+UeA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771548162; c=relaxed/simple; bh=oO/Mstnb/hv6xOZAhuRkyWPUemNHokmZU13swYe0ZWA=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=LsgqLevWECzGKQ0avOk8Kpf1SbQUy5ceaxW8YKwM6hIMOtaIGQUMYnbgXz2PyPAXDlDjInZy0QzxN9A8TlUBKEvdPE2QvxtxnpWPyyftnEnmM6RkhX5LiqR8mVJNky88iZyBd8XRDKWH76eZDfoLwwidmrmPC7qxlMN7YnEmApY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=C97RoL3P; arc=none smtp.client-ip=209.85.214.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--dmatlack.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="C97RoL3P" Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-2a76f2d7744so15721115ad.3 for ; Thu, 19 Feb 2026 16:42:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1771548159; x=1772152959; darn=lists.linux.dev; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=sQBtHoV4k6KEICmmP/ngOD0EM850XDOZaHNBuV2LJiQ=; b=C97RoL3PEWX3oLiZvDNoWC/7P5MfVZJ+0sda1ORpsmyYvQOPPqe54Lak4nY/VGr6mR pLzBLMbOYfiUBQFqIPJEDN9AqWmgCj7KZ9PYpIFRkcMnzAvhXGi43jrrU+6hAe3mNjrs s3cDvLL3pNPdbfQigLSW6lGCYCeJ2lvI7MbHRQtJyrt8BLfDLBOivEFZih5eTvEKKKLe TR2JgnZG0tEZs+UdNNEdnkkSi/DVsOy6BEwsCB6qDJAbInMvpLrU7N4ShI8WMd5lYBTa M/NdA2v3vyyk6IZNtKvzfUFiE3LW5D0UI5nNZeutTRIDJgj/4ejc0e86iJAKfZhehSFh sQYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771548159; x=1772152959; 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=sQBtHoV4k6KEICmmP/ngOD0EM850XDOZaHNBuV2LJiQ=; b=TwNrI/2351zZrTM2swAL4/ILIvQCDfM7f1JZNhflUQyIVML7GPpaeM6dMijiO/UAX1 vPgo+gyt23em6wpNFsOL83OFpYFQ/K4S1QDLqRxF7lVnTDiLxYRSiIhBO6odI4xykAYE oSAe5FMrrbPpvwIwRNczKr7cwiqrO6FzdjZy7PAgD4NnscO73FB8+OXOBPUeJu8hYx7e sT6Drksm/xaDeF7mI95aFhVAvwsq62t3fUrzXw3T/e51acqWo5Ml6rs4YXwttt3/aYoH PXRzA3uXoU5u61EdVffZ8g1DLrAOg2USO6m1vfs7pGiLF59fc/53lD6OW8xA+2FuJ7vh upoQ== X-Forwarded-Encrypted: i=1; AJvYcCU6baUXFQXSEg8kMF3gt6cdBLnMnHurcx7354C4lPlEADDDrdHMmKMnigWqpnrUJ27y32JIqF0QYLA=@lists.linux.dev X-Gm-Message-State: AOJu0YyrG14EU7VRC23FyiYOVR8sZDOgNmxQSDZk1d8bFf5RERfRxT5J MLVzAVaeK5qcBEDa1fY7Pw0RpMbbmVN5VT96HGUlVuhRZGpJYUYq3RaRnxwILEmAZNt2sTH4z6W 73tRvIPmr65uukA== X-Received: from pllk12.prod.google.com ([2002:a17:902:760c:b0:2a9:8200:4985]) (user=dmatlack job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:41c7:b0:2aa:dee9:dcf4 with SMTP id d9443c01a7336-2ad50ecdb29mr69263015ad.25.1771548159168; Thu, 19 Feb 2026 16:42:39 -0800 (PST) Date: Fri, 20 Feb 2026 00:42:16 +0000 In-Reply-To: <20260220004223.4168331-1-dmatlack@google.com> Precedence: bulk X-Mailing-List: loongarch@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260220004223.4168331-1-dmatlack@google.com> X-Mailer: git-send-email 2.53.0.414.gf7e9f6c205-goog Message-ID: <20260220004223.4168331-4-dmatlack@google.com> Subject: [PATCH v2 03/10] KVM: selftests: Use gpa_t for GPAs in Hyper-V selftests From: David Matlack To: Paolo Bonzini Cc: Ackerley Tng , Albert Ou , Alexandre Ghiti , Andrew Jones , Anup Patel , Atish Patra , Bibo Mao , Christian Borntraeger , Claudio Imbrenda , Colin Ian King , David Hildenbrand , David Matlack , Fuad Tabba , Huacai Chen , James Houghton , Janosch Frank , Joey Gouly , kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, Lisa Wang , loongarch@lists.linux.dev, Marc Zyngier , Maxim Levitsky , Nutty Liu , Oliver Upton , Palmer Dabbelt , Paul Walmsley , "Pratik R. Sampat" , Rahul Kumar , Sean Christopherson , Shuah Khan , Suzuki K Poulose , Tianrui Zhao , Wu Fei , Yosry Ahmed , Zenghui Yu Content-Type: text/plain; charset="UTF-8" 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 3fe5f52e404b..fde6682c49eb 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 f6385346dd10..f239923e232d 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.53.0.414.gf7e9f6c205-goog