tools headers UAPI: Sync kvm headers with the kernel sources
commit e30dca91e5667568a6be54886020c43f1f6f95d3 upstream. To pick the changes in: bb58b90b1a8f753b ("KVM: Introduce KVM_SET_USER_MEMORY_REGION2") That automatically adds support for new ioctl KVM_SET_USER_MEMORY_REGION2. Link: https://lore.kernel.org/lkml/ZbVLbkngp4oq13qN@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> [ likexu: backport KVM_SET_USER_MEMORY_REGION2 only ] Signed-off-by: Like Xu <likexu@tencent.com>
This commit is contained in:
parent
6777512fe4
commit
d7d7d354bb
|
@ -95,6 +95,16 @@ struct kvm_userspace_memory_region {
|
|||
__u64 userspace_addr; /* start of the userspace allocated memory */
|
||||
};
|
||||
|
||||
/* for KVM_SET_USER_MEMORY_REGION2 */
|
||||
struct kvm_userspace_memory_region2 {
|
||||
__u32 slot;
|
||||
__u32 flags;
|
||||
__u64 guest_phys_addr;
|
||||
__u64 memory_size;
|
||||
__u64 userspace_addr;
|
||||
__u64 pad[16];
|
||||
};
|
||||
|
||||
/*
|
||||
* The bit 0 ~ bit 15 of kvm_userspace_memory_region::flags are visible for
|
||||
* userspace, other bits are reserved for kvm internal use which are defined
|
||||
|
@ -1192,6 +1202,7 @@ struct kvm_ppc_resize_hpt {
|
|||
#define KVM_CAP_COUNTER_OFFSET 227
|
||||
#define KVM_CAP_ARM_EAGER_SPLIT_CHUNK_SIZE 228
|
||||
#define KVM_CAP_ARM_SUPPORTED_BLOCK_SIZES 229
|
||||
#define KVM_CAP_USER_MEMORY2 231
|
||||
|
||||
#ifdef KVM_CAP_IRQ_ROUTING
|
||||
|
||||
|
@ -1466,6 +1477,8 @@ struct kvm_vfio_spapr_tce {
|
|||
struct kvm_userspace_memory_region)
|
||||
#define KVM_SET_TSS_ADDR _IO(KVMIO, 0x47)
|
||||
#define KVM_SET_IDENTITY_MAP_ADDR _IOW(KVMIO, 0x48, __u64)
|
||||
#define KVM_SET_USER_MEMORY_REGION2 _IOW(KVMIO, 0x49, \
|
||||
struct kvm_userspace_memory_region2)
|
||||
|
||||
/* enable ucontrol for s390 */
|
||||
struct kvm_s390_ucas_mapping {
|
||||
|
|
Loading…
Reference in New Issue