From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Bibo Mao <maobibo@loongson.cn>, Song Gao <gaosong@loongson.cn>,
	Richard Henderson <richard.henderson@linaro.org>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>, qemu-devel@nongnu.org
Subject: Re: [PATCH v4 01/19] target/loongarch: Move some function definition to kvm directory
Date: Mon, 1 Sep 2025 08:50:22 +0200	[thread overview]
Message-ID: <1d66cb4e-525e-48a3-8853-f23a86d4f010@linaro.org> (raw)
In-Reply-To: <20250730030202.3425934-2-maobibo@loongson.cn>
On 30/7/25 05:01, Bibo Mao wrote:
> Move function definition specified with kvm to the corresponding
> directory. Also remove header file "cpu.h" including outside of
> macro QEMU_KVM_LOONGARCH_H.
> 
> Signed-off-by: Bibo Mao <maobibo@loongson.cn>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   hw/loongarch/virt.c                  | 1 +
>   target/loongarch/cpu.h               | 9 ---------
>   target/loongarch/kvm/kvm_loongarch.h | 4 ++--
>   3 files changed, 3 insertions(+), 11 deletions(-)
> diff --git a/target/loongarch/kvm/kvm_loongarch.h b/target/loongarch/kvm/kvm_loongarch.h
> index 1051a341ec..51475675d6 100644
> --- a/target/loongarch/kvm/kvm_loongarch.h
> +++ b/target/loongarch/kvm/kvm_loongarch.h
> @@ -5,11 +5,11 @@
>    * Copyright (c) 2023 Loongson Technology Corporation Limited
>    */
>   
> -#include "cpu.h"
> -
Technically we need "target/loongarch/cpu-qom.h" to get
LoongArchCPU's declaration.
>   #ifndef QEMU_KVM_LOONGARCH_H
>   #define QEMU_KVM_LOONGARCH_H
>   
> +void kvm_loongarch_cpu_post_init(LoongArchCPU *cpu);
> +void kvm_loongarch_init_irq_routing(void);
>   int  kvm_loongarch_set_interrupt(LoongArchCPU *cpu, int irq, int level);
>   void kvm_arch_reset_vcpu(CPUState *cs);
>   
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
next prev parent reply	other threads:[~2025-09-01  6:50 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-30  3:01 [PATCH v4 00/19] target/loongarch: Enhancement about tcg mmu Bibo Mao
2025-07-30  3:01 ` [PATCH v4 01/19] target/loongarch: Move some function definition to kvm directory Bibo Mao
2025-09-01  6:50   ` Philippe Mathieu-Daudé [this message]
2025-07-30  3:01 ` [PATCH v4 02/19] target/loongarch: Define function loongarch_cpu_post_init as static Bibo Mao
2025-07-30  3:01 ` [PATCH v4 03/19] target/loongarch: Set page size in TLB entry with STLB Bibo Mao
2025-08-28  2:38   ` Bibo Mao
2025-08-29  1:27   ` gaosong
2025-07-30  3:01 ` [PATCH v4 04/19] target/loongarch: Add header file cpu-mmu.h Bibo Mao
2025-09-01  6:47   ` Philippe Mathieu-Daudé
2025-07-30  3:01 ` [PATCH v4 05/19] target/loongarch: Add enum type TLBRet definition Bibo Mao
2025-07-30  5:53   ` Richard Henderson
2025-09-01  6:47   ` Philippe Mathieu-Daudé
2025-07-30  3:01 ` [PATCH v4 06/19] target/loongarch: Use vaddr in get_physical_address() Bibo Mao
2025-07-30  5:54   ` Richard Henderson
2025-09-01  6:46   ` Philippe Mathieu-Daudé
2025-07-30  3:01 ` [PATCH v4 07/19] target/loongarch: Use MMUAccessType in loongarch_map_tlb_entry() Bibo Mao
2025-07-30  5:54   ` Richard Henderson
2025-09-01  6:50   ` Philippe Mathieu-Daudé
2025-07-30  3:01 ` [PATCH v4 08/19] target/loongarch: Add common function loongarch_check_pte() Bibo Mao
2025-07-30  5:55   ` Richard Henderson
2025-07-30  3:01 ` [PATCH v4 09/19] target/loongarch: Use loongarch_check_pte in loongarch_page_table_walker Bibo Mao
2025-07-30  3:01 ` [PATCH v4 10/19] target/loongarch: Use MMUConext in loongarch_map_tlb_entry() Bibo Mao
2025-07-30  5:57   ` Richard Henderson
2025-07-30  3:01 ` [PATCH v4 11/19] target/loongarch: Use MMUContext in loongarch_get_addr_from_tlb Bibo Mao
2025-07-30  5:58   ` Richard Henderson
2025-07-30  3:01 ` [PATCH v4 12/19] target/loongarch: Use MMUContext in loongarch_map_address() Bibo Mao
2025-07-30  6:06   ` Richard Henderson
2025-07-30  3:08 ` [PATCH v4 13/19] target/loongarch: Use MMUContext in get_physical_address() Bibo Mao
2025-07-30  6:09   ` Richard Henderson
2025-07-30  3:10 ` [PATCH v4 14/19] target/loongarch: Track user space address accessed in kernel mode Bibo Mao
2025-07-30  3:10 ` [PATCH v4 15/19] target/loongarch: Use correct address when flush tlb Bibo Mao
2025-07-30  6:12   ` Richard Henderson
2025-07-30  3:11 ` [PATCH v4 16/19] target/loongarch: Use mmu idx bitmap method " Bibo Mao
2025-07-30  3:11 ` [PATCH v4 17/19] target/loongarch: Add parameter tlb pointer with fill_tlb_entry Bibo Mao
2025-07-30  3:12 ` [PATCH v4 18/19] target/loongarch: Reduce TLB flush with helper_tlbwr Bibo Mao
2025-07-30  3:13 ` [PATCH v4 19/19] target/loongarch: Update TLB index selection method Bibo Mao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox
  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):
  git send-email \
    --in-reply-to=1d66cb4e-525e-48a3-8853-f23a86d4f010@linaro.org \
    --to=philmd@linaro.org \
    --cc=gaosong@loongson.cn \
    --cc=jiaxun.yang@flygoat.com \
    --cc=maobibo@loongson.cn \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY
  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
  Be sure your reply has a Subject: header at the top and a blank line
  before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).