[PATCH v2 0/4] target/ppc: Prohibit target specific KVM prototypes on user emulation

Philippe Mathieu-Daudé posted 4 patches 6 months, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20231003070427.69621-1-philmd@linaro.org
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Nicholas Piggin <npiggin@gmail.com>, Daniel Henrique Barboza <danielhb413@gmail.com>, "Cédric Le Goater" <clg@kaod.org>
include/sysemu/kvm.h   |  1 -
target/ppc/kvm_ppc.h   |  4 ++++
hw/ppc/e500.c          |  4 ++++
target/ppc/kvm-stub.c  | 19 -------------------
target/ppc/kvm.c       |  4 ++--
target/ppc/meson.build |  2 +-
6 files changed, 11 insertions(+), 23 deletions(-)
delete mode 100644 target/ppc/kvm-stub.c
[PATCH v2 0/4] target/ppc: Prohibit target specific KVM prototypes on user emulation
Posted by Philippe Mathieu-Daudé 6 months, 3 weeks ago
Since v1:
- Addressed Michael review comments,
- Added Daniel R-b tag.

Implement Kevin's suggestion to remove KVM declarations
for user emulation builds, so if KVM prototype are used
we directly get a compile failure.

Philippe Mathieu-Daudé (4):
  sysemu/kvm: Restrict kvmppc_get_radix_page_info() to ppc targets
  hw/ppc/e500: Restrict ppce500_init_mpic_kvm() to KVM
  target/ppc: Restrict KVM objects to system emulation
  target/ppc: Prohibit target specific KVM prototypes on user emulation

 include/sysemu/kvm.h   |  1 -
 target/ppc/kvm_ppc.h   |  4 ++++
 hw/ppc/e500.c          |  4 ++++
 target/ppc/kvm-stub.c  | 19 -------------------
 target/ppc/kvm.c       |  4 ++--
 target/ppc/meson.build |  2 +-
 6 files changed, 11 insertions(+), 23 deletions(-)
 delete mode 100644 target/ppc/kvm-stub.c

-- 
2.41.0


Re: [PATCH v2 0/4] target/ppc: Prohibit target specific KVM prototypes on user emulation
Posted by Philippe Mathieu-Daudé 6 months, 2 weeks ago
On 3/10/23 09:04, Philippe Mathieu-Daudé wrote:
> Since v1:
> - Addressed Michael review comments,
> - Added Daniel R-b tag.
> 
> Implement Kevin's suggestion to remove KVM declarations
> for user emulation builds, so if KVM prototype are used
> we directly get a compile failure.
> 
> Philippe Mathieu-Daudé (4):
>    sysemu/kvm: Restrict kvmppc_get_radix_page_info() to ppc targets
>    hw/ppc/e500: Restrict ppce500_init_mpic_kvm() to KVM
>    target/ppc: Restrict KVM objects to system emulation
>    target/ppc: Prohibit target specific KVM prototypes on user emulation

Ping?