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 21903C83F33 for ; Mon, 4 Sep 2023 11:16:40 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ECp6fY2X0ms2mvFxeuFIiG/6BUDV3778QE2vB1A/4Sg=; b=DWGMQVrkX6Q//V VyTFkQ2Vs14tT1GJdiQrKsRIY9Tfy3D6QDSjQnGBHEupSYWFnE5CK0K6EZR+EYB0WARJrQQchtsRY EDFlgU2CF8n8fBNU8355qvR+fkMIkIiCp+i+JVUbxrvSBG8XLRPUAwyn21BsHnPLKmWRM5SvyrJ+Z fNNoa8AUbOqMoCTeFNZg3cpevpIcUIjyGIxfyVhhWLjSHcWitF+s98LqRJJVtk/lYSrGxB8AKqv/n zWggtQSw6afpv6rkQ/KqvrWR66M/HAr7EoAl2Uri4h9EZZKkY5fKNqxOVMvnI69VOJgpSO63wECp2 9siEKKPGZRYzlICiwtJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qd7Yu-003z7T-05; Mon, 04 Sep 2023 11:16:08 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qd7Yr-003z5t-0v for linux-arm-kernel@lists.infradead.org; Mon, 04 Sep 2023 11:16:06 +0000 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-31c8321c48fso1315075f8f.1 for ; Mon, 04 Sep 2023 04:16:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1693826161; x=1694430961; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=I9GCAlEvdvaQhIuQIQlH6uZieVhDq0JG0Q/Lab40q3Y=; b=n3yFjOEWMnVje2jozvVCG7dssfADJmXKyb/M4iVxHtVqzhZPUwJwDRSfXF3V1Om+la UgmtmIkYEnxPMSk8KbopX/OIw2JFb840r27RWkOd8IIdi+/FaqrxuR8N/U3AoxCYgvdH ekS5dhAOgszTZCHAh7uLmlrSapQyY7KovRZ/agV4jLZ8UohQNGt+suVTwjNSOpZJyUQh iKFMg0c0THeMlGXNKHRUn8EYqnAFy4MpfnwNsIZmR7xuN5p4FDr6X/utlCPwlda65GLo 3SXIEu0YQ1gqLG24Yk0twLIa5tStChwfoKMLpMiLj+d6tE8yWD7zaqM4y2RaUQGV2nWr I1UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693826161; x=1694430961; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=I9GCAlEvdvaQhIuQIQlH6uZieVhDq0JG0Q/Lab40q3Y=; b=PFuOUi8g1o/edFNY5LCWakOEpVPIMUPm7LFJdL3BoB3R+bUu7mzCu4ylQQCdaYppky oAhRTyeQWULgVkmdTCjL058DqPtE2foHhlnDNoWErpiUOe4pDVkcd872TXa7ZY5ZpNH+ hxdl1IrENX/RIFbpxQt1kvAmadDZ81YdwzX+Xkyn94R5UXxxdc0VL0wqrhOAbtZEDhM2 2Y7E41p+RNKdqV2OfV15yWrfPDZabqekasmAm3Rz3GZnCACyJS1NMbRL1GYnC/5kWlMx ZqYZhI6IHocXSE1fRyi7qEHGIpv7fKmHX2pU+PNjgtQHpJZUPyg/TlMTEUaWkhzoXKhW cpYA== X-Gm-Message-State: AOJu0Yw/b33TzD/OPNN89+0gun7ca41KcgB9QQdQS1+IayRP1S8GuB9k 41Rv1QSiBJ7xjjVZSzC2e4gX4Q== X-Google-Smtp-Source: AGHT+IHR3qJF/WADy7jFXe6yIqtW0lGNRVyiw5VlYSS4H2pPf8Rp4EorJnHY9mZBl7rKv7MV9xXpWQ== X-Received: by 2002:adf:ee90:0:b0:319:6b56:94d9 with SMTP id b16-20020adfee90000000b003196b5694d9mr8511545wro.2.1693826161050; Mon, 04 Sep 2023 04:16:01 -0700 (PDT) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id x18-20020adfec12000000b0031989784d96sm14281097wrn.76.2023.09.04.04.15.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Sep 2023 04:15:59 -0700 (PDT) Date: Mon, 4 Sep 2023 13:15:56 +0200 From: Andrew Jones To: Haibo Xu Cc: xiaobo55x@gmail.com, Sean Christopherson , Paul Walmsley , Palmer Dabbelt , Albert Ou , Paolo Bonzini , Shuah Khan , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Anup Patel , Atish Patra , Guo Ren , Greentime Hu , wchen , Daniel Henrique Barboza , Ricardo Koller , Vishal Annapurve , David Matlack , Aaron Lewis , Mingwei Zhang , Vitaly Kuznetsov , Ackerley Tng , Lei Wang , Vipin Sharma , Maxim Levitsky , Like Xu , Peter Gonda , Thomas Huth , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , David Woodhouse , Michal Luczaj , zhang songyi , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org Subject: Re: [PATCH v2 1/8] KVM: selftests: Unify the codes for guest exception handling Message-ID: <20230904-ba5051a5bf17d17f2711d7dc@orel> References: <7affb0387d7272573f7093de7887872e1fb5979b.1693659382.git.haibo1.xu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <7affb0387d7272573f7093de7887872e1fb5979b.1693659382.git.haibo1.xu@intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230904_041605_324404_F443A6EA X-CRM114-Status: GOOD ( 15.93 ) 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 On Sat, Sep 02, 2023 at 08:59:23PM +0800, Haibo Xu wrote: > Rename the vm_init_descriptor_tables() and vcpu_init_vector_tables() ^ vcpu_init_descriptor_tables() > prototypes to vm_init_vector_tables() and vcpu_init_vector_tables() > respectively, so that we can use common names for the architectures > (x86/aarch64/riscv) and then put them in a common header. > > By the way, vm_install_exception_handler() prototype were also moved to > the common header since they are commonly used across the architectures. > > The patch is a preparation to share the guest exception handling codes > in riscv. > > Suggested-by: Andrew Jones > Suggested-by: Sean Christopherson > Signed-off-by: Haibo Xu > --- > tools/testing/selftests/kvm/aarch64/arch_timer.c | 4 ++-- > tools/testing/selftests/kvm/aarch64/debug-exceptions.c | 4 ++-- > tools/testing/selftests/kvm/aarch64/page_fault_test.c | 4 ++-- > tools/testing/selftests/kvm/aarch64/vgic_irq.c | 4 ++-- > tools/testing/selftests/kvm/include/aarch64/processor.h | 8 +------- > tools/testing/selftests/kvm/include/kvm_util_base.h | 7 +++++++ > tools/testing/selftests/kvm/include/x86_64/processor.h | 5 ----- > tools/testing/selftests/kvm/lib/aarch64/processor.c | 6 +++--- > tools/testing/selftests/kvm/lib/x86_64/processor.c | 4 ++-- > tools/testing/selftests/kvm/x86_64/amx_test.c | 4 ++-- > tools/testing/selftests/kvm/x86_64/fix_hypercall_test.c | 4 ++-- > tools/testing/selftests/kvm/x86_64/hyperv_evmcs.c | 4 ++-- > tools/testing/selftests/kvm/x86_64/hyperv_features.c | 8 ++++---- > tools/testing/selftests/kvm/x86_64/hyperv_ipi.c | 6 +++--- > tools/testing/selftests/kvm/x86_64/kvm_pv_test.c | 4 ++-- > tools/testing/selftests/kvm/x86_64/monitor_mwait_test.c | 4 ++-- > .../testing/selftests/kvm/x86_64/pmu_event_filter_test.c | 8 ++++---- > .../kvm/x86_64/smaller_maxphyaddr_emulation_test.c | 4 ++-- > tools/testing/selftests/kvm/x86_64/svm_int_ctl_test.c | 4 ++-- > .../selftests/kvm/x86_64/svm_nested_shutdown_test.c | 4 ++-- > .../selftests/kvm/x86_64/svm_nested_soft_inject_test.c | 4 ++-- > tools/testing/selftests/kvm/x86_64/ucna_injection_test.c | 8 ++++---- > .../selftests/kvm/x86_64/userspace_msr_exit_test.c | 4 ++-- > .../kvm/x86_64/vmx_exception_with_invalid_guest_state.c | 4 ++-- > tools/testing/selftests/kvm/x86_64/vmx_pmu_caps_test.c | 4 ++-- > tools/testing/selftests/kvm/x86_64/xapic_ipi_test.c | 4 ++-- > tools/testing/selftests/kvm/x86_64/xcr0_cpuid_test.c | 4 ++-- > tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c | 4 ++-- > 28 files changed, 66 insertions(+), 70 deletions(-) > Reviewed-by: Andrew Jones _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel