From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Tianrui Zhao <zhaotianrui@loongson.cn>, qemu-devel@nongnu.org
Cc: gaosong@loongson.cn, maobibo@loongson.cn, mst@redhat.com,
cohuck@redhat.com, pbonzini@redhat.com,
marcandre.lureau@redhat.com, berrange@redhat.com,
thuth@redhat.com, richard.henderson@linaro.org,
peter.maydell@linaro.org, yangxiaojuan@loongson.cn,
xianglai li <lixianglai@loongson.cn>
Subject: Re: [PATCH v4 8/9] target/loongarch: Implement set vcpu intr for kvm
Date: Wed, 10 Jan 2024 10:20:41 +0100 [thread overview]
Message-ID: <ce60886a-601e-454c-a8e2-a6844720a89d@linaro.org> (raw)
In-Reply-To: <20240105075804.1228596-9-zhaotianrui@loongson.cn>
Hi Tianrui,
On 5/1/24 08:58, Tianrui Zhao wrote:
> Implement loongarch kvm set vcpu interrupt interface,
> when a irq is set in vcpu, we use the KVM_INTERRUPT
> ioctl to set intr into kvm.
>
> Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
> Signed-off-by: xianglai li <lixianglai@loongson.cn>
> Reviewed-by: Song Gao <gaosong@loongson.cn>
> ---
> target/loongarch/cpu.c | 34 +++++++++++++++++++++-------
> target/loongarch/kvm/kvm.c | 15 ++++++++++++
> target/loongarch/kvm/kvm_loongarch.h | 16 +++++++++++++
> target/loongarch/trace-events | 1 +
> 4 files changed, 58 insertions(+), 8 deletions(-)
> create mode 100644 target/loongarch/kvm/kvm_loongarch.h
>
> diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c
> index 6614a094c8..dfbbe0ace1 100644
> --- a/target/loongarch/cpu.c
> +++ b/target/loongarch/cpu.c
> @@ -11,7 +11,6 @@
> #include "qapi/error.h"
> #include "qemu/module.h"
> #include "sysemu/qtest.h"
> -#include "exec/cpu_ldst.h"
> #include "exec/exec-all.h"
> #include "cpu.h"
> #include "internals.h"
> @@ -20,8 +19,16 @@
> #ifndef CONFIG_USER_ONLY
> #include "sysemu/reset.h"
> #endif
> -#include "tcg/tcg.h"
> #include "vec.h"
> +#include "sysemu/kvm.h"
> +#include "kvm/kvm_loongarch.h"
Shouldn't this header ^ ...
> +#ifdef CONFIG_KVM
... goes here?
> +#include <linux/kvm.h>
> +#endif
> +#ifdef CONFIG_TCG
> +#include "exec/cpu_ldst.h"
> +#include "tcg/tcg.h"
> +#endif
next prev parent reply other threads:[~2024-01-10 9:21 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-05 7:57 [PATCH v4 0/9] Add loongarch kvm accel support Tianrui Zhao
2024-01-05 7:57 ` [PATCH v4 1/9] linux-headers: Synchronize linux headers from linux v6.7.0-rc8 Tianrui Zhao
2024-01-05 7:57 ` [PATCH v4 2/9] target/loongarch: Define some kvm_arch interfaces Tianrui Zhao
2024-01-05 7:57 ` [PATCH v4 3/9] target/loongarch: Supplement vcpu env initial when vcpu reset Tianrui Zhao
2024-01-05 7:57 ` [PATCH v4 4/9] target/loongarch: Implement kvm get/set registers Tianrui Zhao
2024-01-05 7:58 ` [PATCH v4 5/9] target/loongarch: Implement kvm_arch_init function Tianrui Zhao
2024-01-05 7:58 ` [PATCH v4 6/9] target/loongarch: Implement kvm_arch_init_vcpu Tianrui Zhao
2024-01-05 7:58 ` [PATCH v4 7/9] target/loongarch: Implement kvm_arch_handle_exit Tianrui Zhao
2024-01-05 7:58 ` [PATCH v4 8/9] target/loongarch: Implement set vcpu intr for kvm Tianrui Zhao
2024-01-10 9:20 ` Philippe Mathieu-Daudé [this message]
2024-01-10 9:41 ` [PATCH v4 8/9a] target/loongarch: Restrict TCG-specific code Philippe Mathieu-Daudé
2024-01-10 9:41 ` [PATCH v4 8/9b] target/loongarch: Implement set vcpu intr for kvm Philippe Mathieu-Daudé
2024-01-11 2:29 ` gaosong
2024-01-11 8:24 ` Philippe Mathieu-Daudé
2024-01-05 7:58 ` [PATCH v4 9/9] target/loongarch: Add loongarch kvm into meson build Tianrui Zhao
2024-01-10 2:36 ` gaosong
2024-01-10 2:46 ` [PATCH v4 0/9] Add loongarch kvm accel support gaosong
2024-01-10 9:42 ` Philippe Mathieu-Daudé
2024-01-10 10:05 ` gaosong
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=ce60886a-601e-454c-a8e2-a6844720a89d@linaro.org \
--to=philmd@linaro.org \
--cc=berrange@redhat.com \
--cc=cohuck@redhat.com \
--cc=gaosong@loongson.cn \
--cc=lixianglai@loongson.cn \
--cc=maobibo@loongson.cn \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.com \
--cc=yangxiaojuan@loongson.cn \
--cc=zhaotianrui@loongson.cn \
/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).