Jerone Young wrote:
> # HG changeset patch
> # User Jerone Young <[EMAIL PROTECTED]>
> # Date 1193618330 18000
> # Node ID 8bf5e4e6a4c9d2dab89062a0ab24a2ae5d144a02
> # Parent  3bf072e498768885ab96b7ccb668b61c96db0e83
> Move kvm_context structure to kvmctl.h header
> 
> This patch moves the kvm_context sturcture declaration to the kvmctl.h
> header. This way other files are able to identify variables associated
> with the structure. Also moved are definitions MAX_VCPU &
> KVM_MAX_NUM_MEM_REGIONS  to the kvmctl-x86.h since these are arch
> specific. 

Just see these two definitions here, I remembered kernel space also
defines two similar macros for the purpose . How to sync with them
direclty?   Define them in linux/kvm.h instead of defining them twice ?


> - */
> -struct kvm_context {
> -     /// Filedescriptor to /dev/kvm
> -     int fd;
> -     int vm_fd;
> -     int vcpu_fd[MAX_VCPUS];
> -     struct kvm_run *run[MAX_VCPUS];
> -     /// Callbacks that KVM uses to emulate various unvirtualizable
> functionality 
> -     struct kvm_callbacks *callbacks;
> -     void *opaque;
> -     /// A pointer to the memory used as the physical memory for the
> guest 
> -     void *physical_memory;
> -     /// is dirty pages logging enabled for all regions or not
> -     int dirty_pages_log_all;
> -     /// memory regions parameters
> -     struct kvm_memory_region mem_regions[KVM_MAX_NUM_MEM_REGIONS];
> -     /// do not create in-kernel irqchip if set
> -     int no_irqchip_creation;
> -     /// in-kernel irqchip status
> -     int irqchip_in_kernel;
> -};
> 

Maybe we should put them in kvmctl.h, and just move some arch-specific
fields to kvmctl-x86.h. 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to