Re: Basic Query regarding kvm_init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il 01/09/2014 20:49, Amit Tomar ha scritto:
> I'm new to KVM and have basic query regarding kvm_init call from inside
> e500.c?
> 
> I'm aware that first argument in "kvm_init" for x86 is the kvm_callbacks
> structure to specify the handlers to be called when I/O or some
> system-sensitive instructions are executed inside the virtual 
> machine.
> 
> kvm_init(*&vmx_x86_op*s, sizeof(struct vcpu_vmx), __alignof__(struct
> vcpu_vmx), THIS_MODULE);
> 
> 
> But when I looked into kvm_init call for PowerPc cores,first argument is
> kept NULL.  
> 
> kvm_init(*NULL*, sizeof(struct kvmppc_vcpu_e500), 0, THIS_MODULE); --->
> For PowerPC
> 
> Where is the kvm_callbacks structure as it is in x86,what approach has
> been taken for PowePC?

PowerPC doesn't put common code in a separate module (like KVM does for
VMX and SVM), so it doesn't need the callbacks.

Paolo

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux