From patchwork Wed Dec 7 21:48:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Upton X-Patchwork-Id: 13067674 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 44E9DC4708D for ; Wed, 7 Dec 2022 21:49:57 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=i12t0jN6RgjjLNzXN1cd2bvgcw3q7L8SlnXdjsTlyuk=; b=NsIHT0bui/5LfC b4mMMrzSKYV3WipYfFyDzXoBBa0mvHNy2nN2d+68ZLnonT81mK+W2G/L5ld74M6bW7d4XS484c8Qg jjN4jZwnh/CQTrAccsvTtwXs3+oXLlGoWgSTDBtYAoHxOtQ/jeL0nBsMAG80chSqNfvTQj44KRQGo cVfF79ZKopVtF1DOrRyqGPjigHLRDX7HZ8iSYvUValsQZ5bb6Ch45ZV8z9g8QGeeATNcq/Wz48Rer R/X2csK5dXA+C5TL0Ft2/1VSHK8cNVawW8Fb58jencsb2anoH6oTWi7pJrs57qmISVFEyYG8Oe60f w80R3sUBlb4DEJfL6/bw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p32HJ-00DIsc-NV; Wed, 07 Dec 2022 21:48:33 +0000 Received: from out2.migadu.com ([188.165.223.204]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p32HG-00DIgl-Ds for linux-arm-kernel@lists.infradead.org; Wed, 07 Dec 2022 21:48:31 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1670449701; 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; bh=16LMNcduUmJXQJNzhs+CPaMIYUMzlfOKY+rOo3K6LbQ=; b=u63UBWyhpAxMlem/etDv9iTa0u6y7HKmhxIez0MD8dedIZiU5ViY2yr9IXP3CuYiD3RfWe J/6c2HMI5Lq/sZ/WcKkd8IWu6JHyh4J0YjR4lmfLolPHXcfudpJ5PoxihxSG4TSDFBnt8l PNKkzvRIBpGlvjTvrx90ImyS1fcbAwg= From: Oliver Upton To: Marc Zyngier , James Morse , Alexandru Elisei Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, kvmarm@lists.linux.dev, Ricardo Koller , Paolo Bonzini , Sean Christopherson , Oliver Upton Subject: [PATCH 0/4] KVM: selftests: Fixes for ucall pool + page_fault_test Date: Wed, 7 Dec 2022 21:48:04 +0000 Message-Id: <20221207214809.489070-1-oliver.upton@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221207_134830_640283_5AC291CA X-CRM114-Status: UNSURE ( 7.79 ) X-CRM114-Notice: Please train this message. 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 The combination of the pool-based ucall implementation + page_fault_test resulted in some 'fun' bugs, not the least of which is that our handling of the VA space on arm64 is completely wrong. Small series to fix up the issues on kvm/queue. Patches 1-2 can probably be squashed into Paolo's merge resolution, if desired. Mark Brown (1): KVM: selftests: Fix build due to ucall_uninit() removal Oliver Upton (3): KVM: selftests: Setup ucall after loading program into guest memory KVM: arm64: selftests: Align VA space allocator with TTBR0 KVM: selftests: Allocate ucall pool from MEM_REGION_DATA .../selftests/kvm/aarch64/page_fault_test.c | 9 +++++++-- .../testing/selftests/kvm/include/kvm_util_base.h | 1 + .../testing/selftests/kvm/lib/aarch64/processor.c | 10 ++++++++++ tools/testing/selftests/kvm/lib/kvm_util.c | 15 ++++++++++----- tools/testing/selftests/kvm/lib/ucall_common.c | 2 +- 5 files changed, 29 insertions(+), 8 deletions(-)