From patchwork Thu Nov 28 00:55:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Christopherson X-Patchwork-Id: 13887503 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 712F9D6D250 for ; Thu, 28 Nov 2024 01:03:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID :References:Mime-Version:In-Reply-To:Date:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yZF+awhaUQW7e1GyoRi99nH8ZZQQUWlJO8C+SRuM3r4=; b=fUadQ2sx96mfz/ aaCpFSjmLBhHVvPF05elHvqJk4LZ1wf/K+wFo2wut5Ijmm4E7E/yjgpoKCLM5S0qYzP2o+dZ7zdvp h3xFEnaKLFn4hMws4V+2qMOB3riLBGIE17+GKZfXWNTw4GsG9/j3O3vFljEBaRR/ZfviOGjurEGeB zRhC0dq3PuqVvlQzqzw7K9eipX448Ajkei8wsc3ZwmaVWye+fvcPRhHoL5Yk9HpfWEAkdfeOnUZy/ 3ahwZpq29PNElW2BvndNRmjZaOttqJXiydtB01RV96ghwoHV/6fM1+riyS92pfW7M004pBOrYNZnA OZKvhslY8q/zHfgy1U6A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tGSwh-0000000EOVh-0RZN; Thu, 28 Nov 2024 01:03:51 +0000 Received: from mail-pf1-x449.google.com ([2607:f8b0:4864:20::449]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tGSpA-0000000ELuO-40iq for linux-riscv@lists.infradead.org; Thu, 28 Nov 2024 00:56:05 +0000 Received: by mail-pf1-x449.google.com with SMTP id d2e1a72fcca58-72516cbe91bso420149b3a.2 for ; Wed, 27 Nov 2024 16:56:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1732755364; x=1733360164; darn=lists.infradead.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=ysvaIdmMpR/VmHKwcGzTb4HtexOKJ4Ghx7ZOeauEtvk=; b=tzf9s40pWqVzpmLNO32a26Tf2QFo+nrCKRE6wGnne/HQEwmUKtt1ylD3n3SGm4VsQi KUY4z533xxNK80XTV0Bix3Ri2sEYc6Kqp+zJ3MoslHz4Hvz11a2xT+sjeb85iraQpW1f YXv6tM0ijCCGu4DKXmjojgkIhlKs6Rqewa8nJwJVwQv0hEb/KwJI0R7KKMWgG/yrBesY a4z09dCLwOs82rnnjdd2qaQiU2H4k1XUumt//WOWbbSZciCrsvVGT+wKsOqfH4hsTZJd XXAS9DdTilZM7ra7F+xEjsm4xIC0r67dv/UGAiTPG4+7RbPGFgqsmDKzrgrGhgYjUOzi nrPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732755364; x=1733360164; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ysvaIdmMpR/VmHKwcGzTb4HtexOKJ4Ghx7ZOeauEtvk=; b=nx/+QCA0+koqchxo86R5Nbx4zSABHv5Jzx8u5R2UfGCwdVnaeCE8WGi2N5R9z3SKgl Dj0YuKrqmCDCX9gUdIz92G/R3I4Li8Zh06NsPOrSXyQrdr3Gvs+TdrzEluofIeeJdbxx GhlWFYttS2QybzIM9B4uzicr+DcOdMVLf1ImJ+KTBS6Hh/HYY87M+00llaaALKsDsnRO jDv42UytsrDLTBCL8coOpfsYTqutxB1Q3klauPIv1KlgfV6AtAX0KM7YrCNGztXCb9rJ 0Pcj0k9cfGvN6186rhGrsJ4tOF9tsh0hk0pvIC26Lqm/Go5Z+cRcLUbYvm3UhNfqjsH/ feIQ== X-Forwarded-Encrypted: i=1; AJvYcCW5oD9YYLHSWPisrOimQHYkBaepMzhf+/r1WK+vyUvzsPE5R4vF+7A8B+Dt9Lo737Nge4SeMPVbJLoSLA==@lists.infradead.org X-Gm-Message-State: AOJu0YyTkHSelHYM+aMcpfCBnOrdnvCnFUrVMnxX+b3fstNdKZhoZ1o9 aS7nklwSovyWVt2kB1GX5NbMyJm42hdteUc+oIXxcyB7EqlCkl390i5lGdGhHUhDLkqPzdcWqLD +kA== X-Google-Smtp-Source: AGHT+IE+ChL1KLorT8CIkfmIr19XCryd//IzNWr5z8aQi0CF/Qf3ZQTw4qD7deHM4fsaQ6e/45gZiVf87tA= X-Received: from plbmb7.prod.google.com ([2002:a17:903:987:b0:211:b7e:ba7d]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:e84f:b0:212:618a:461f with SMTP id d9443c01a7336-21501b5aed2mr63134555ad.41.1732755363732; Wed, 27 Nov 2024 16:56:03 -0800 (PST) Date: Wed, 27 Nov 2024 16:55:39 -0800 In-Reply-To: <20241128005547.4077116-1-seanjc@google.com> Mime-Version: 1.0 References: <20241128005547.4077116-1-seanjc@google.com> X-Mailer: git-send-email 2.47.0.338.g60cca15819-goog Message-ID: <20241128005547.4077116-9-seanjc@google.com> Subject: [PATCH v4 08/16] KVM: sefltests: Explicitly include ucall_common.h in mmu_stress_test.c From: Sean Christopherson To: Marc Zyngier , Oliver Upton , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Paolo Bonzini , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Sean Christopherson Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Jones , James Houghton , Muhammad Usama Anjum X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241127_165604_986975_D205E89C X-CRM114-Status: UNSURE ( 6.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Sean Christopherson Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Explicitly include ucall_common.h in the MMU stress test, as unlike arm64 and x86-64, RISC-V doesn't include ucall_common.h in its processor.h, i.e. this will allow enabling the test on RISC-V. Reported-by: Andrew Jones Signed-off-by: Sean Christopherson --- tools/testing/selftests/kvm/mmu_stress_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/kvm/mmu_stress_test.c b/tools/testing/selftests/kvm/mmu_stress_test.c index 5467b12f5903..fbb693428a82 100644 --- a/tools/testing/selftests/kvm/mmu_stress_test.c +++ b/tools/testing/selftests/kvm/mmu_stress_test.c @@ -15,6 +15,7 @@ #include "test_util.h" #include "guest_modes.h" #include "processor.h" +#include "ucall_common.h" static void guest_code(uint64_t start_gpa, uint64_t end_gpa, uint64_t stride) {