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 mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48BB0C4708D for ; Wed, 7 Dec 2022 21:48:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id A0EF44B83A; Wed, 7 Dec 2022 16:48:26 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@linux.dev Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xe44cnA4pljv; Wed, 7 Dec 2022 16:48:25 -0500 (EST) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 0D2DE4B837; Wed, 7 Dec 2022 16:48:25 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 13F334B835 for ; Wed, 7 Dec 2022 16:48:24 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cClKEcAnDC4q for ; Wed, 7 Dec 2022 16:48:22 -0500 (EST) Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id C08A84B834 for ; Wed, 7 Dec 2022 16:48:22 -0500 (EST) 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 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 Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev, Paolo Bonzini , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu 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(-) -- 2.39.0.rc0.267.gcb52ba06e7-goog _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C2F88C1A for ; Wed, 7 Dec 2022 21:48:28 +0000 (UTC) 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> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Message-ID: <20221207214804.FtF6YCdOsAkGzNjjzHA-z17-fvyQMGY74FDhqLaBjI0@z> 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(-) -- 2.39.0.rc0.267.gcb52ba06e7-goog 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 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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(-) -- 2.39.0.rc0.267.gcb52ba06e7-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel