From patchwork Fri Jan 18 16:14:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Martin X-Patchwork-Id: 10770831 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B628713B4 for ; Fri, 18 Jan 2019 16:14:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A326B29F41 for ; Fri, 18 Jan 2019 16:14:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9733729FE8; Fri, 18 Jan 2019 16:14:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 304AB29F41 for ; Fri, 18 Jan 2019 16:14:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject: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=iYGEqiFOBdsaFtVIAgjw1csZZVgmZuwzvHoiX6DzI3g=; b=B9j TG31IMktvAIsyyLUJJcM5eFbw23uerC8AE+p0F1WfVddEcCCLt+KccnZZyV4LuzrOnNxdHDUXfuXz G079GaKVcUY1NmYILM44U8bUV6YDeGB5CKTOUspKPL88nULKJSiVC/SvSWwswamziUwIJFT+TGKa7 Du65JuLptxoOSVY8TqSBgFDqmJCEK2BZid9Hv0z6e0R1Y952lhbYCNTDL410o4kCjWBEHkjpoem/X ZKhlPVjSksL62FNRwX7B5mh9kdLELcQU4gNSPy698aFkBHkuiDAFzvKTmAWoXa4tW6d/B9gqDtfhh 4CcGs1ju1CYedabZl81FaQhj7ZRcLMw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gkWn0-0003fN-Av; Fri, 18 Jan 2019 16:14:38 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gkWmx-0003ey-Ah for linux-arm-kernel@lists.infradead.org; Fri, 18 Jan 2019 16:14:36 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0879FEBD; Fri, 18 Jan 2019 08:14:34 -0800 (PST) Received: from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 170853F557; Fri, 18 Jan 2019 08:14:31 -0800 (PST) From: Dave Martin To: kvmarm@lists.cs.columbia.edu Subject: [RFC PATCH 00/12] arm64: SVE guest support test hacks Date: Fri, 18 Jan 2019 16:14:09 +0000 Message-Id: <1547828061-20462-1-git-send-email-Dave.Martin@arm.com> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190118_081435_373141_D7FD62B9 X-CRM114-Status: UNSURE ( 9.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Okamoto Takayuki , Christoffer Dall , Ard Biesheuvel , Marc Zyngier , Catalin Marinas , Will Deacon , Julien Grall , Andre Przywara , =?utf-8?q?Alex_Benn=C3=A9e?= , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This series, based on kvmtool master [1], contains development hacks to accompany the recently posted v4 SVE guest support series for the Linux kernel [2]. This is not proposed for upstreaming in its current form, but some things are probably close to being appropriate for upstream. Comments and review welcome (but don't sweat the details too much). [1] git://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git master https://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git/log/ Specifically, commit fdd26ecb4bc5 ("kvm-cpu: Pause vCPU in signal handler"). [2] [PATCH v4 00/25] KVM: arm64: SVE guest support https://lists.cs.columbia.edu/pipermail/kvmarm/2019-January/034134.html git://linux-arm.org/linux-dm.git sve-kvm/v4/head http://linux-arm.org/git?p=linux-dm.git;a=shortlog;h=refs/heads/sve-kvm/v4/head Dave Martin (12): guest: Add generated file guest/guest_init.c to .gitignore update_headers: Sync kvm UAPI headers with linux v5.0-rc2 Makefile: [HACK] Work around GCC 8 warnings :( Makefile: [HACK] Pass relevant flags when checking for libfdt arm64: Correct ARM64_CORE_REG() size encodings for all core registers arm64: [HACK] Pull in kvm UAPI header updates from SVE development branch arm64: [HACK] Add option to show the kernel's KVM register ID list arm64: [HACK] Basic SVE support arm64: [HACK] Show extra info about SVE with --show-reg-list arm64: [HACK] Allow configuration of the guest's set of SVE vector lengths arm64: [HACK] FPSIMD/SVE register dumping for lkvm debug arm64: [HACK] Check that out-of-range SVE register IDs can't be dumped Makefile | 11 +- arm/aarch32/include/asm/kvm.h | 55 ++++++- arm/aarch64/include/asm/kvm.h | 54 ++++++- arm/aarch64/include/kvm/kvm-config-arch.h | 9 ++ arm/aarch64/include/kvm/kvm-cpu-arch.h | 3 +- arm/aarch64/kvm-cpu.c | 209 ++++++++++++++++++++++++- arm/include/arm-common/kvm-config-arch.h | 2 + arm/kvm-cpu.c | 239 ++++++++++++++++++++++++++++ guest/.gitignore | 1 + include/linux/kvm.h | 250 +++++++++++++++++++++++++++++- mips/include/asm/kvm.h | 23 ++- powerpc/include/asm/kvm.h | 39 +++++ x86/include/asm/kvm.h | 69 ++++++++- 13 files changed, 944 insertions(+), 20 deletions(-) create mode 100644 guest/.gitignore