lkml.org 
[lkml]   [2011]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3] kvm: make vcpu life cycle separated from kvm instance
On Mon, Dec 12, 2011 at 10:41:23AM +0800, Liu Ping Fan wrote:
> From: Liu Ping Fan <pingfank@linux.vnet.ibm.com>
>
> Currently, vcpu can be destructed only when kvm instance destroyed.
> Change this to vcpu's destruction taken when its refcnt is zero,
> and then vcpu MUST and CAN be destroyed before kvm's destroy.
>
> Signed-off-by: Liu Ping Fan <pingfank@linux.vnet.ibm.com>
> ---
> arch/x86/kvm/i8254.c | 10 ++++--
> arch/x86/kvm/i8259.c | 12 +++++--
> arch/x86/kvm/mmu.c | 7 ++--
> arch/x86/kvm/x86.c | 54 +++++++++++++++++++----------------
> include/linux/kvm_host.h | 71 ++++++++++++++++++++++++++++++++++++++++++----
> virt/kvm/irq_comm.c | 7 +++-
> virt/kvm/kvm_main.c | 62 +++++++++++++++++++++++++++++++++------
> 7 files changed, 170 insertions(+), 53 deletions(-)

This needs a full audit of paths that access vcpus. See for one example
bsp_vcpu pointer.




\
 
 \ /
  Last update: 2011-12-13 12:39    [W:0.301 / U:0.008 seconds]
©2003-2014 Jasper Spaans. Advertise on this site