From: Richard Henderson <richard.henderson@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>, qemu-devel@nongnu.org
Cc: libvir-list@redhat.com, kvm@vger.kernel.org,
Huacai Chen <chenhuacai@kernel.org>,
Jiaxun Yang <jiaxun.yang@flygoat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Aurelien Jarno <aurelien@aurel32.net>,
Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>
Subject: Re: [PATCH v2] MIPS: remove support for trap and emulate KVM
Date: Wed, 21 Dec 2022 09:31:25 -0800 [thread overview]
Message-ID: <f9a9c36d-61d6-2bd8-fe19-1e3585ae5fdd@linaro.org> (raw)
In-Reply-To: <20221221091718.71844-1-philmd@linaro.org>
On 12/21/22 01:17, Philippe Mathieu-Daudé wrote:
> From: Paolo Bonzini<pbonzini@redhat.com>
>
> This support was limited to the Malta board, drop it.
> I do not have a machine that can run VZ KVM, so I am assuming
> that it works for -M malta as well.
>
> Signed-off-by: Paolo Bonzini<pbonzini@redhat.com>
> Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
> ---
> Since Paolo's v1:
>
> - Remove cpu_mips_kvm_um_phys_to_kseg0() declaration in "cpu.h"
> - Remove unused KVM_KSEG0_BASE/KVM_KSEG2_BASE definitions
> - Use USEG_LIMIT/KSEG0_BASE instead of magic values
>
> /* Check where the kernel has been linked */
> - if (!(kernel_entry & 0x80000000ll)) {
> - error_report("CONFIG_KVM_GUEST kernels are not supported");
> + if (kernel_entry <= USEG_LIMIT) {
> + error_report("Trap-and-Emul kernels (Linux CONFIG_KVM_GUEST)"
> + " are not supported");
>
> - env->CP0_EBase = (cs->cpu_index & 0x3FF) | (int32_t)0x80000000;
> + env->CP0_EBase = KSEG0_BASE | (cs->cpu_index & 0x3FF);
> ---
> docs/about/deprecated.rst | 9 -------
> docs/about/removed-features.rst | 9 +++++++
> hw/mips/malta.c | 46 +++++----------------------------
> target/mips/cpu.c | 7 +----
> target/mips/cpu.h | 3 ---
> target/mips/internal.h | 3 ---
> target/mips/kvm.c | 11 +-------
> target/mips/sysemu/addr.c | 17 ------------
> target/mips/sysemu/physaddr.c | 13 ----------
> 9 files changed, 18 insertions(+), 100 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
next prev parent reply other threads:[~2022-12-21 17:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-21 9:17 [PATCH v2] MIPS: remove support for trap and emulate KVM Philippe Mathieu-Daudé
2022-12-21 17:31 ` Richard Henderson [this message]
2022-12-22 8:06 ` Philippe Mathieu-Daudé
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=f9a9c36d-61d6-2bd8-fe19-1e3585ae5fdd@linaro.org \
--to=richard.henderson@linaro.org \
--cc=aleksandar.rikalo@syrmia.com \
--cc=aurelien@aurel32.net \
--cc=chenhuacai@kernel.org \
--cc=jiaxun.yang@flygoat.com \
--cc=kvm@vger.kernel.org \
--cc=libvir-list@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.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).