diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2016-11-23 00:14:06 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2016-11-23 22:22:59 -0500 |
commit | a91d5df2b44a0c9b171ac47a48e02e762c8224e9 (patch) | |
tree | 17408359123934e2c712f6b228da4dfbf48d5e4c | |
parent | e2702871b4b70a39e08c46744a8fa16e281120aa (diff) |
KVM: PPC: Move KVM_PPC_PVINFO_FLAGS_EV_IDLE definition next to its structure
The KVM_PPC_PVINFO_FLAGS_EV_IDLE macro defines a bit for use in the flags
field of struct kvm_ppc_pvinfo. However, changes since that was introduced
have moved it away from that structure definition, which is confusing.
Move it back next to the structure it belongs with.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
-rw-r--r-- | include/uapi/linux/kvm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 300ef255d1e0..e9f5ceffd741 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h | |||
@@ -651,6 +651,9 @@ struct kvm_enable_cap { | |||
651 | }; | 651 | }; |
652 | 652 | ||
653 | /* for KVM_PPC_GET_PVINFO */ | 653 | /* for KVM_PPC_GET_PVINFO */ |
654 | |||
655 | #define KVM_PPC_PVINFO_FLAGS_EV_IDLE (1<<0) | ||
656 | |||
654 | struct kvm_ppc_pvinfo { | 657 | struct kvm_ppc_pvinfo { |
655 | /* out */ | 658 | /* out */ |
656 | __u32 flags; | 659 | __u32 flags; |
@@ -682,8 +685,6 @@ struct kvm_ppc_smmu_info { | |||
682 | struct kvm_ppc_one_seg_page_size sps[KVM_PPC_PAGE_SIZES_MAX_SZ]; | 685 | struct kvm_ppc_one_seg_page_size sps[KVM_PPC_PAGE_SIZES_MAX_SZ]; |
683 | }; | 686 | }; |
684 | 687 | ||
685 | #define KVM_PPC_PVINFO_FLAGS_EV_IDLE (1<<0) | ||
686 | |||
687 | #define KVMIO 0xAE | 688 | #define KVMIO 0xAE |
688 | 689 | ||
689 | /* machine type bits, to be used as argument to KVM_CREATE_VM */ | 690 | /* machine type bits, to be used as argument to KVM_CREATE_VM */ |