File tree Expand file tree Collapse file tree 4 files changed +24
-6
lines changed Expand file tree Collapse file tree 4 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -634,6 +634,7 @@ struct kvm_ppc_cpu_char {
634
634
635
635
#define KVM_REG_PPC_DEC_EXPIRY (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xbe)
636
636
#define KVM_REG_PPC_ONLINE (KVM_REG_PPC | KVM_REG_SIZE_U32 | 0xbf)
637
+ #define KVM_REG_PPC_PTCR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xc0)
637
638
638
639
/* Transactional Memory checkpointed state:
639
640
* This is all GPRs, all VSX regs and a subset of SPRs
Original file line number Diff line number Diff line change @@ -160,6 +160,8 @@ struct kvm_s390_vm_cpu_subfunc {
160
160
#define KVM_S390_VM_CRYPTO_ENABLE_DEA_KW 1
161
161
#define KVM_S390_VM_CRYPTO_DISABLE_AES_KW 2
162
162
#define KVM_S390_VM_CRYPTO_DISABLE_DEA_KW 3
163
+ #define KVM_S390_VM_CRYPTO_ENABLE_APIE 4
164
+ #define KVM_S390_VM_CRYPTO_DISABLE_APIE 5
163
165
164
166
/* kvm attributes for migration mode */
165
167
#define KVM_S390_VM_MIGRATION_STOP 0
Original file line number Diff line number Diff line change @@ -300,10 +300,7 @@ struct kvm_vcpu_events {
300
300
__u8 injected ;
301
301
__u8 nr ;
302
302
__u8 has_error_code ;
303
- union {
304
- __u8 pad ;
305
- __u8 pending ;
306
- };
303
+ __u8 pending ;
307
304
__u32 error_code ;
308
305
} exception ;
309
306
struct {
@@ -387,6 +384,7 @@ struct kvm_sync_regs {
387
384
388
385
#define KVM_STATE_NESTED_GUEST_MODE 0x00000001
389
386
#define KVM_STATE_NESTED_RUN_PENDING 0x00000002
387
+ #define KVM_STATE_NESTED_EVMCS 0x00000004
390
388
391
389
#define KVM_STATE_NESTED_SMM_GUEST_MODE 0x00000001
392
390
#define KVM_STATE_NESTED_SMM_VMXON 0x00000002
Original file line number Diff line number Diff line change @@ -420,13 +420,19 @@ struct kvm_run {
420
420
struct kvm_coalesced_mmio_zone {
421
421
__u64 addr ;
422
422
__u32 size ;
423
- __u32 pad ;
423
+ union {
424
+ __u32 pad ;
425
+ __u32 pio ;
426
+ };
424
427
};
425
428
426
429
struct kvm_coalesced_mmio {
427
430
__u64 phys_addr ;
428
431
__u32 len ;
429
- __u32 pad ;
432
+ union {
433
+ __u32 pad ;
434
+ __u32 pio ;
435
+ };
430
436
__u8 data [8 ];
431
437
};
432
438
@@ -751,6 +757,15 @@ struct kvm_ppc_resize_hpt {
751
757
752
758
#define KVM_S390_SIE_PAGE_OFFSET 1
753
759
760
+ /*
761
+ * On arm64, machine type can be used to request the physical
762
+ * address size for the VM. Bits[7-0] are reserved for the guest
763
+ * PA size shift (i.e, log2(PA_Size)). For backward compatibility,
764
+ * value 0 implies the default IPA size, 40bits.
765
+ */
766
+ #define KVM_VM_TYPE_ARM_IPA_SIZE_MASK 0xffULL
767
+ #define KVM_VM_TYPE_ARM_IPA_SIZE (x ) \
768
+ ((x) & KVM_VM_TYPE_ARM_IPA_SIZE_MASK)
754
769
/*
755
770
* ioctls for /dev/kvm fds:
756
771
*/
@@ -958,6 +973,8 @@ struct kvm_ppc_resize_hpt {
958
973
#define KVM_CAP_HYPERV_SEND_IPI 161
959
974
#define KVM_CAP_COALESCED_PIO 162
960
975
#define KVM_CAP_HYPERV_ENLIGHTENED_VMCS 163
976
+ #define KVM_CAP_EXCEPTION_PAYLOAD 164
977
+ #define KVM_CAP_ARM_VM_IPA_SIZE 165
961
978
962
979
#ifdef KVM_CAP_IRQ_ROUTING
963
980
You can’t perform that action at this time.
0 commit comments