lkml.org 
[lkml]   [2011]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH RFC V2 5/5] kvm guest : pv-ticketlocks support for linux guests running on KVM hypervisor
    From
    Date
    On Mon, 2011-10-24 at 00:37 +0530, Raghavendra K T wrote:
    > This patch extends Linux guests running on KVM hypervisor to support
    > pv-ticketlocks. Very early during bootup, paravirtualied KVM guest detects if
    > the hypervisor has required feature (KVM_FEATURE_WAIT_FOR_KICK) to support
    > pv-ticketlocks. If so, support for pv-ticketlocks is registered via pv_lock_ops.
    >
    > Signed-off-by: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
    > Signed-off-by: Suzuki Poulose <suzuki@in.ibm.com>
    > Signed-off-by: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
    > ---
    > diff --git a/arch/x86/include/asm/kvm_para.h b/arch/x86/include/asm/kvm_para.h
    > index 2874c19..c7f34b7 100644
    > --- a/arch/x86/include/asm/kvm_para.h
    > +++ b/arch/x86/include/asm/kvm_para.h
    > @@ -195,10 +195,18 @@ void kvm_async_pf_task_wait(u32 token);
    > void kvm_async_pf_task_wake(u32 token);
    > u32 kvm_read_and_reset_pf_reason(void);
    > extern void kvm_disable_steal_time(void);
    > -#else
    > +
    > +#ifdef CONFIG_PARAVIRT_SPINLOCKS
    > +void __init kvm_guest_early_init(void);
    > +#else /* CONFIG_PARAVIRT_SPINLOCKS */
    > +#define kvm_guest_early_init() do { } while (0)

    This should be defined as an empty function.

    --

    Sasha.



    \
     
     \ /
      Last update: 2011-10-24 11:05    [W:0.056 / U:0.112 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site