mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
hw/ppc: moved hcalls that depend on softmmu
The hypercalls h_enter, h_remove, h_bulk_remove, h_protect, and h_read, have been moved to spapr_softmmu.c with the functions they depend on. The functions is_ram_address and push_sregs_to_kvm_pr are not static anymore as functions on both spapr_hcall.c and spapr_softmmu.c depend on them. The hypercalls h_resize_hpt_prepare and h_resize_hpt_commit have been divided, the KVM part stayed in spapr_hcall.c while the softmmu part was moved to spapr_softmmu.c Signed-off-by: Lucas Mateus Castro (alqotel) <lucas.araujo@eldorado.org.br> Message-Id: <20210506163941.106984-2-lucas.araujo@eldorado.org.br> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
committed by
David Gibson
parent
37f219c8f8
commit
962104f044
@@ -29,6 +29,9 @@ ppc_ss.add(when: 'CONFIG_PSERIES', if_true: files(
|
|||||||
'spapr_numa.c',
|
'spapr_numa.c',
|
||||||
'pef.c',
|
'pef.c',
|
||||||
))
|
))
|
||||||
|
ppc_ss.add(when: ['CONFIG_PSERIES', 'CONFIG_TCG'], if_true: files(
|
||||||
|
'spapr_softmmu.c',
|
||||||
|
))
|
||||||
ppc_ss.add(when: 'CONFIG_SPAPR_RNG', if_true: files('spapr_rng.c'))
|
ppc_ss.add(when: 'CONFIG_SPAPR_RNG', if_true: files('spapr_rng.c'))
|
||||||
ppc_ss.add(when: ['CONFIG_PSERIES', 'CONFIG_LINUX'], if_true: files(
|
ppc_ss.add(when: ['CONFIG_PSERIES', 'CONFIG_LINUX'], if_true: files(
|
||||||
'spapr_pci_vfio.c',
|
'spapr_pci_vfio.c',
|
||||||
|
|||||||
+33
-577
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -582,6 +582,12 @@ typedef target_ulong (*spapr_hcall_fn)(PowerPCCPU *cpu, SpaprMachineState *sm,
|
|||||||
void spapr_register_hypercall(target_ulong opcode, spapr_hcall_fn fn);
|
void spapr_register_hypercall(target_ulong opcode, spapr_hcall_fn fn);
|
||||||
target_ulong spapr_hypercall(PowerPCCPU *cpu, target_ulong opcode,
|
target_ulong spapr_hypercall(PowerPCCPU *cpu, target_ulong opcode,
|
||||||
target_ulong *args);
|
target_ulong *args);
|
||||||
|
target_ulong softmmu_resize_hpt_prepare(PowerPCCPU *cpu, SpaprMachineState *spapr,
|
||||||
|
target_ulong shift);
|
||||||
|
target_ulong softmmu_resize_hpt_commit(PowerPCCPU *cpu, SpaprMachineState *spapr,
|
||||||
|
target_ulong flags, target_ulong shift);
|
||||||
|
bool is_ram_address(SpaprMachineState *spapr, hwaddr addr);
|
||||||
|
void push_sregs_to_kvm_pr(SpaprMachineState *spapr);
|
||||||
|
|
||||||
/* Virtual Processor Area structure constants */
|
/* Virtual Processor Area structure constants */
|
||||||
#define VPA_MIN_SIZE 640
|
#define VPA_MIN_SIZE 640
|
||||||
|
|||||||
Reference in New Issue
Block a user