Lines Matching +full:guest +full:- +full:index +full:- +full:bits

1 /* SPDX-License-Identifier: GPL-2.0-only */
28 #include <asm/guest-state-buffer.h>
43 * hardware supports). Both guest and host use this value.
59 /* PPC-specific vcpu->requests bit members */
78 /* Physical Address Mask - allowed range of real mode RAM access */
217 * which stores the guest's view of the second word of the HPTE
218 * (including the guest physical address of the mapping),
219 * plus forward and backward pointers in a doubly-linked ring
221 * ring are 32-bit HPTE indexes, to save space.
229 * The rmap array of size number of guest pages is allocated for each memslot.
230 * This array is used to store usage specific information about the guest page.
233 /* Free bits which can be used to define a new usage */
236 #define KVMPPC_RMAP_HPT 0x0100000000000000 /* HPT guest */
239 * rmap usage definition for a hash page table (hpt) guest:
241 * 0x0000018000000000 RC bits
243 * 0x00000000ffffffff HPT index bits
244 * The bottom 32 bits are the index in the guest HPT of a HPTE that points to
260 /* Host virtual (linear mapping) address of guest HPT */
262 /* Array of reverse mapping entries for each guest HPTE */
264 /* Guest HPT size is 2**(order) bytes */
304 struct kvm_resize_hpt *resize_hpt; /* protected by kvm->lock */
340 #define VCORE_ENTRY_MAP(vc) ((vc)->entry_exit_map & 0xff)
341 #define VCORE_EXIT_MAP(vc) ((vc)->entry_exit_map >> 8)
363 * registered by a PAPR guest. There are three types of area
364 * that a guest can register.
367 unsigned long gpa; /* Current guest phys addr */
370 unsigned long next_gpa; /* Guest phys addr for update */
458 #define KVMPPC_EPR_KERNEL 2 /* in-kernel irqchip */
480 unsigned int index; member
518 /* Nestedv2 L1<->L0 communication state */
533 int slb_max; /* 1 + index of last valid entry in slb[] */
643 /* Time base value when we entered the guest */
711 * POWER9 and later: fault_gpa contains the guest real address of page
712 * fault for a radix guest, or segment descriptor (equivalent to result
733 /* guest debug registers*/
774 u64 dec_expires; /* Relative to guest timebase. */
779 u8 irq_pending; /* Used by XIVE to signal pending guest irqs */
848 u64 nested_hfscr; /* HFSCR that the L1 requested for the nested guest */
867 struct kvmhv_tb_accumulator rm_entry; /* real-mode entry code */
868 struct kvmhv_tb_accumulator rm_intr; /* real-mode intr handling */
869 struct kvmhv_tb_accumulator rm_exit; /* real-mode exit code */
870 struct kvmhv_tb_accumulator guest_time; /* guest execution */
871 struct kvmhv_tb_accumulator cede_time; /* time napping inside guest */
876 #define VCPU_FPR(vcpu, i) (vcpu)->arch.fp.fpr[i][TS_FPROFFSET]
877 #define VCPU_VSX_FPR(vcpu, i, j) ((vcpu)->arch.fp.fpr[i][j])
878 #define VCPU_VSX_VR(vcpu, i) ((vcpu)->arch.vr.vr[i])
880 /* Values for vcpu->arch.state */
885 /* Values for vcpu->arch.io_gpr */