[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 1/7] sysemu/accel: Restrict machine methods to system-mode
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v2 1/7] sysemu/accel: Restrict machine methods to system-mode |
Date: |
Tue, 26 May 2020 19:24:21 +0200 |
Restrict init_machine(), setup_post() and has_memory()
to system-mode.
Reviewed-by: Edgar E. Iglesias <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
include/sysemu/accel.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/sysemu/accel.h b/include/sysemu/accel.h
index 47e5788530..e08b8ab8fa 100644
--- a/include/sysemu/accel.h
+++ b/include/sysemu/accel.h
@@ -37,10 +37,12 @@ typedef struct AccelClass {
/*< public >*/
const char *name;
+#ifndef CONFIG_USER_ONLY
int (*init_machine)(MachineState *ms);
void (*setup_post)(MachineState *ms, AccelState *accel);
bool (*has_memory)(MachineState *ms, AddressSpace *as,
hwaddr start_addr, hwaddr size);
+#endif
bool *allowed;
/*
* Array of global properties that would be applied when specific
--
2.21.3
- [PATCH v2 0/7] exec/cpu: Cleanups around "exec/hwaddr.h" (reserved to system-mode), Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 1/7] sysemu/accel: Restrict machine methods to system-mode,
Philippe Mathieu-Daudé <=
- [PATCH v2 2/7] sysemu/tcg: Only declare tcg_allowed when TCG is available, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 3/7] sysemu/hvf: Only declare hvf_allowed when HVF is available, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 4/7] target/ppc: Restrict PPCVirtualHypervisorClass to system-mode, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 5/7] target/s390x: Only compile decode_basedisp() on system-mode, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 6/7] target/s390x/helper: Clean ifdef'ry, Philippe Mathieu-Daudé, 2020/05/26
- [PATCH v2 7/7] target/s390x: Restrict system-mode declarations, Philippe Mathieu-Daudé, 2020/05/26
- Re: [PATCH v2 0/7] exec/cpu: Cleanups around "exec/hwaddr.h" (reserved to system-mode), Cornelia Huck, 2020/05/27