Skip to content

Commit 81403c8

Browse files
Fuad TabbaMarc Zyngier
authored andcommitted
KVM: arm64: Remove fixed_config.h header
The few remaining items needed in fixed_config.h are better suited for pkvm.h. Move them there and delete it. No functional change intended. Signed-off-by: Fuad Tabba <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Zyngier <[email protected]>
1 parent 3d7ff00 commit 81403c8

File tree

6 files changed

+5
-210
lines changed

6 files changed

+5
-210
lines changed

arch/arm64/kvm/hyp/include/nvhe/fixed_config.h

Lines changed: 0 additions & 206 deletions
This file was deleted.

arch/arm64/kvm/hyp/include/nvhe/pkvm.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,9 @@ struct pkvm_hyp_vcpu *pkvm_load_hyp_vcpu(pkvm_handle_t handle,
7272
unsigned int vcpu_idx);
7373
void pkvm_put_hyp_vcpu(struct pkvm_hyp_vcpu *hyp_vcpu);
7474

75+
bool kvm_handle_pvm_sysreg(struct kvm_vcpu *vcpu, u64 *exit_code);
76+
bool kvm_handle_pvm_restricted(struct kvm_vcpu *vcpu, u64 *exit_code);
77+
void kvm_init_pvm_id_regs(struct kvm_vcpu *vcpu);
78+
int kvm_check_pvm_sysreg_table(void);
79+
7580
#endif /* __ARM64_KVM_NVHE_PKVM_H__ */

arch/arm64/kvm/hyp/nvhe/pkvm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#include <asm/kvm_emulate.h>
1111

12-
#include <nvhe/fixed_config.h>
1312
#include <nvhe/mem_protect.h>
1413
#include <nvhe/memory.h>
1514
#include <nvhe/pkvm.h>

arch/arm64/kvm/hyp/nvhe/setup.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#include <nvhe/early_alloc.h>
1414
#include <nvhe/ffa.h>
15-
#include <nvhe/fixed_config.h>
1615
#include <nvhe/gfp.h>
1716
#include <nvhe/memory.h>
1817
#include <nvhe/mem_protect.h>

arch/arm64/kvm/hyp/nvhe/switch.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include <asm/debug-monitors.h>
2727
#include <asm/processor.h>
2828

29-
#include <nvhe/fixed_config.h>
3029
#include <nvhe/mem_protect.h>
3130

3231
/* Non-VHE specific context */

arch/arm64/kvm/hyp/nvhe/sys_regs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
#include <hyp/adjust_pc.h>
1313

14-
#include <nvhe/fixed_config.h>
1514
#include <nvhe/pkvm.h>
1615

1716
#include "../../sys_regs.h"

0 commit comments

Comments
 (0)