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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2152BC71153 for ; Mon, 4 Sep 2023 11:16:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236929AbjIDLQM (ORCPT ); Mon, 4 Sep 2023 07:16:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232568AbjIDLQL (ORCPT ); Mon, 4 Sep 2023 07:16:11 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F0DCCD0 for ; Mon, 4 Sep 2023 04:16:02 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-313e742a787so818392f8f.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=vger.kernel.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=CMqTvcfoarfIJSBd1JiDV22ESK/qNv7BI6cjJt3jShl1fQWkZU4snlpjUii5z9aKcD zOdcc0Zg6VUrg/fjmFMi6BVuyiZjRq8yMPLCu4Hfq3Cp/MUdAJrr6E2SVfXK8smgGQ7s G/DzOW2/pkwvk0GRWunoFFSMMY9RyJyVRru3ZT0bTlTOHoCmr8ZSL1i0jEqduUOHSySW icXJ+n0bTTn0pQvvd6wUN8SGWcjZ16Ero9htZTbqIBnAYOf/iU5kYE1W4se65SknXzw/ IXvMDdgxXlHmx5OYzRF1MJxhWJ2B6ZQdoELVSsMaBeSnUvuKUTGFdfavrZ4RB5EgSnrT psMg== 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=QwXgxtS5ghfjSF1ZOJGuZjjFGIsgyf5d9MKqn1Q1gRrsr1C23W/dWNLYFYuHX/coKA ql9G4VdSIwGKZ5WnarpaB7DIKwp2IbCDfY6Yq+jtRP19k7IHQt+5R+W56keu509qlADO w6o48Mw492TdWFLb6pK364Uo8Zu/CP4yDSUHpLqT27Qaz9/CiixvenDaljqaNwqGnpbE FE+xXxP1BFWnJN5AQXz5HyXD4sTVxVuING0f6iMNehA1yqAqLrrh/fULY07bzP8DAJMr 6ttP6weJgy5zCpCugSwuUnoeNfx7d5xD4aocyVGw7mxmqaVZwZXoa46AFt/YcT75PbJq 7oEQ== X-Gm-Message-State: AOJu0YxwEFBQa95pXnxYyGiKWeLkUDBtCqdnJCCc0go5WKSeOWe1nDSi jpEcw8+GDvOHLM0vWYheULFpHA== 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7affb0387d7272573f7093de7887872e1fb5979b.1693659382.git.haibo1.xu@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.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