[PATCH 0/6] accel: Restrict TCG-specific code

Philippe Mathieu-Daudé posted 6 patches 3 years, 3 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210117164813.4101761-1-f4bug@amsat.org
accel/tcg/internal.h      | 23 +++++++++++++++++++++++
include/exec/exec-all.h   | 11 -----------
include/hw/core/cpu.h     |  4 ++--
accel/stubs/tcg-stub.c    | 10 ++++++++++
accel/tcg/cpu-exec.c      |  1 +
accel/tcg/cputlb.c        |  1 +
accel/tcg/translate-all.c |  3 ++-
accel/tcg/user-exec.c     |  1 +
softmmu/physmem.c         |  4 ++++
9 files changed, 44 insertions(+), 14 deletions(-)
create mode 100644 accel/tcg/internal.h
[PATCH 0/6] accel: Restrict TCG-specific code
Posted by Philippe Mathieu-Daudé 3 years, 3 months ago
Hi,

I've prepared some patches to have KVM-only builds.
Some patches are generic - well kind of, instead they are
TCG specific =) - so I'm sending them as a separate series.

Please review,

Phil.

Philippe Mathieu-Daudé (6):
  accel/tcg: Make cpu_gen_init() static
  accel/tcg: Restrict tb_flush_jmp_cache() from other accelerators
  accel/tcg: Restrict tb_gen_code() from other accelerators
  accel/tcg: Declare missing cpu_loop_exit*() stubs
  accel/tcg: Restrict cpu_io_recompile() from other accelerators
  softmmu: Restrict watchpoint handlers to TCG accelerator

 accel/tcg/internal.h      | 23 +++++++++++++++++++++++
 include/exec/exec-all.h   | 11 -----------
 include/hw/core/cpu.h     |  4 ++--
 accel/stubs/tcg-stub.c    | 10 ++++++++++
 accel/tcg/cpu-exec.c      |  1 +
 accel/tcg/cputlb.c        |  1 +
 accel/tcg/translate-all.c |  3 ++-
 accel/tcg/user-exec.c     |  1 +
 softmmu/physmem.c         |  4 ++++
 9 files changed, 44 insertions(+), 14 deletions(-)
 create mode 100644 accel/tcg/internal.h

-- 
2.26.2

Re: [PATCH 0/6] accel: Restrict TCG-specific code
Posted by Claudio Fontana 3 years, 3 months ago
On 1/17/21 5:48 PM, Philippe Mathieu-Daudé wrote:
> Hi,
> 
> I've prepared some patches to have KVM-only builds.
> Some patches are generic - well kind of, instead they are
> TCG specific =) - so I'm sending them as a separate series.
> 
> Please review,
> 
> Phil.

I am wondering the best way to combine with:

[PATCH v12 00/22] i386 cleanup PART 2
https://lists.gnu.org/archive/html/qemu-devel/2021-01/msg02427.html

In particular:

[PATCH v12 12/22] physmem: make watchpoint checking code TCG-only
[PATCH v12 13/22] cpu: move adjust_watchpoint_address to tcg_ops
[PATCH v12 14/22] cpu: move debug_check_watchpoint to tcg_ops

Thanks!

Claudio


> 
> Philippe Mathieu-Daudé (6):
>   accel/tcg: Make cpu_gen_init() static
>   accel/tcg: Restrict tb_flush_jmp_cache() from other accelerators
>   accel/tcg: Restrict tb_gen_code() from other accelerators
>   accel/tcg: Declare missing cpu_loop_exit*() stubs
>   accel/tcg: Restrict cpu_io_recompile() from other accelerators
>   softmmu: Restrict watchpoint handlers to TCG accelerator
> 
>  accel/tcg/internal.h      | 23 +++++++++++++++++++++++
>  include/exec/exec-all.h   | 11 -----------
>  include/hw/core/cpu.h     |  4 ++--
>  accel/stubs/tcg-stub.c    | 10 ++++++++++
>  accel/tcg/cpu-exec.c      |  1 +
>  accel/tcg/cputlb.c        |  1 +
>  accel/tcg/translate-all.c |  3 ++-
>  accel/tcg/user-exec.c     |  1 +
>  softmmu/physmem.c         |  4 ++++
>  9 files changed, 44 insertions(+), 14 deletions(-)
>  create mode 100644 accel/tcg/internal.h
>