History

Merge branch 'kvm-ppc-next' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc into HEAD

The big feature this time is support for POWER9 using the radix-tree MMU for host and guest. This required some changes to arch/powerpc code, so I talked with Michael Ellerman and he created a topic branch with this patchset, which I merged into kvm-ppc-next and which Michael will pull into his tree. Michael also put in some patches from Nick Piggin which fix bugs in the interrupt vector code in relocatable kernels when coming from a KVM guest. Other notable changes include: * Add the ability to change the size of the hashed page table, from David Gibson. * XICS (interrupt controller) emulation fixes and improvements, from Li Zhong. * Bug fixes from myself and Thomas Huth. These patches define some new KVM capabilities and ioctls, but there should be no conflicts with anything else currently upstream, as far as I am aware.

Paolo Bonzini committed 9 years ago

Commit d5b798c2 parents 55dd00a 050f23336 files · +2608 −563Browse files

Showing the changes to include/uapi/linux (1 of 36 files). Show all

Unified · Split

include/uapi/linux/kvm.h+17−0
@@ -685,6 +685,13 @@ struct kvm_ppc_smmu_info { · 684 unmodified lines
685685 struct kvm_ppc_one_seg_page_size sps[KVM_PPC_PAGE_SIZES_MAX_SZ];
686686 };
687687
688+/* for KVM_PPC_RESIZE_HPT_{PREPARE,COMMIT} */
689+struct kvm_ppc_resize_hpt {
690+ __u64 flags;
691+ __u32 shift;
692+ __u32 pad;
693+};
694+
688695 #define KVMIO 0xAE
689696
690697 /* machine type bits, to be used as argument to KVM_CREATE_VM */
@@ -871,6 +878,9 @@ struct kvm_ppc_smmu_info { · 180 unmodified lines
871878 #define KVM_CAP_S390_USER_INSTR0 130
872879 #define KVM_CAP_MSI_DEVID 131
873880 #define KVM_CAP_PPC_HTM 132
881+#define KVM_CAP_SPAPR_RESIZE_HPT 133
882+#define KVM_CAP_PPC_MMU_RADIX 134
883+#define KVM_CAP_PPC_MMU_HASH_V3 135
874884
875885 #ifdef KVM_CAP_IRQ_ROUTING
876886
@@ -1187,6 +1197,13 @@ struct kvm_s390_ucas_mapping { · 310 unmodified lines
11871197 #define KVM_ARM_SET_DEVICE_ADDR _IOW(KVMIO, 0xab, struct kvm_arm_device_addr)
11881198 /* Available with KVM_CAP_PPC_RTAS */
11891199 #define KVM_PPC_RTAS_DEFINE_TOKEN _IOW(KVMIO, 0xac, struct kvm_rtas_token_args)
1200+/* Available with KVM_CAP_SPAPR_RESIZE_HPT */
1201+#define KVM_PPC_RESIZE_HPT_PREPARE _IOR(KVMIO, 0xad, struct kvm_ppc_resize_hpt)
1202+#define KVM_PPC_RESIZE_HPT_COMMIT _IOR(KVMIO, 0xae, struct kvm_ppc_resize_hpt)
1203+/* Available with KVM_CAP_PPC_RADIX_MMU or KVM_CAP_PPC_HASH_MMU_V3 */
1204+#define KVM_PPC_CONFIGURE_V3_MMU _IOW(KVMIO, 0xaf, struct kvm_ppc_mmuv3_cfg)
1205+/* Available with KVM_CAP_PPC_RADIX_MMU */
1206+#define KVM_PPC_GET_RMMU_INFO _IOW(KVMIO, 0xb0, struct kvm_ppc_rmmu_info)
11901207
11911208 /* ioctl for vm fd */
11921209 #define KVM_CREATE_DEVICE _IOWR(KVMIO, 0xe0, struct kvm_create_device)