mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
KVM: Portability: Move kvm_memory_alias to asm/kvm.h
This patch moves sturct kvm_memory_alias from include/linux/kvm.h to include/asm-x86/kvm.h. Also have include/linux/kvm.h include include/asm/kvm.h. Signed-off-by: Jerone Young <jyoung5@us.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
7faa8f6fcc
commit
f6a40e3bdf
2 changed files with 21 additions and 7 deletions
20
include/asm-x86/kvm.h
Normal file
20
include/asm-x86/kvm.h
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#ifndef __LINUX_KVM_X86_H
|
||||||
|
#define __LINUX_KVM_X86_H
|
||||||
|
|
||||||
|
/*
|
||||||
|
* KVM x86 specific structures and definitions
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <asm/types.h>
|
||||||
|
#include <linux/ioctl.h>
|
||||||
|
|
||||||
|
struct kvm_memory_alias {
|
||||||
|
__u32 slot; /* this has a different namespace than memory slots */
|
||||||
|
__u32 flags;
|
||||||
|
__u64 guest_phys_addr;
|
||||||
|
__u64 memory_size;
|
||||||
|
__u64 target_phys_addr;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
#include <asm/types.h>
|
#include <asm/types.h>
|
||||||
#include <linux/ioctl.h>
|
#include <linux/ioctl.h>
|
||||||
|
#include <asm/kvm.h>
|
||||||
|
|
||||||
#define KVM_API_VERSION 12
|
#define KVM_API_VERSION 12
|
||||||
|
|
||||||
|
@ -35,13 +36,6 @@ struct kvm_userspace_memory_region {
|
||||||
/* for kvm_memory_region::flags */
|
/* for kvm_memory_region::flags */
|
||||||
#define KVM_MEM_LOG_DIRTY_PAGES 1UL
|
#define KVM_MEM_LOG_DIRTY_PAGES 1UL
|
||||||
|
|
||||||
struct kvm_memory_alias {
|
|
||||||
__u32 slot; /* this has a different namespace than memory slots */
|
|
||||||
__u32 flags;
|
|
||||||
__u64 guest_phys_addr;
|
|
||||||
__u64 memory_size;
|
|
||||||
__u64 target_phys_addr;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* for KVM_IRQ_LINE */
|
/* for KVM_IRQ_LINE */
|
||||||
struct kvm_irq_level {
|
struct kvm_irq_level {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue