qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH 09/10] target/riscv: Restrict KVM-specific fields from Ar


From: Richard Henderson
Subject: Re: [RFC PATCH 09/10] target/riscv: Restrict KVM-specific fields from ArchCPU
Date: Fri, 7 Apr 2023 21:29:59 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

On 4/7/23 21:28, Richard Henderson wrote:
On 4/5/23 09:04, Philippe Mathieu-Daudé wrote:
These fields shouldn't be accessed when KVM is not available.

Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
RFC: The migration part is likely invalid...

kvmtimer_needed() is defined in target/riscv/machine.c as

   static bool kvmtimer_needed(void *opaque)
   {
       return kvm_enabled();
   }

which depends on a host feature.
---
  target/riscv/cpu.h     | 2 ++
  target/riscv/machine.c | 4 ++++
  2 files changed, 6 insertions(+)

Yeah, the kvm parts need to be extracted to their own subsection.

Oh, but they are.  Ho hum, it's getting late.


r~




reply via email to

[Prev in Thread] Current Thread [Next in Thread]