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

[Xen-devel] Linux 2.6.11 does not build SMP


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
  • From: Kip Macy <kip.macy@xxxxxxxxx>
  • Date: Sun, 13 Mar 2005 15:32:50 -0800
  • Cc: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, Ian.Pratt@xxxxxxxxxxxx
  • Delivery-date: Mon, 14 Mar 2005 00:01:30 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:mime-version:content-type:content-transfer-encoding; b=eDgrZkEdXpY+3RxKVwaN8tQOpP1fTE4Dt2oPGwVZ2yFwCbDbxDbpBeRdf6R9cZRVrGl5OgZcNQX4g7mgz+UxhBSatks2YLmJF+73V2za0/l27Aw//aGHUix3Lzt4XIRcRG3kIDykP+jop2bcay4Aa7wcpCqqHw/IB6QjCUOSlUw=
  • List-id: List for Xen developers <xen-devel.lists.sourceforge.net>

You aren't defining pmd_val_ma for CONFIG_SMP and LINUX_VERSION_CODE >
KERNEL_VERSION(2,6,0)
/* Linux 2.6 isn't using the traditional batched interface. */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
#define QUEUE_SIZE 2048
#define pte_offset_kernel pte_offset
#define pmd_val_ma(v) (v).pmd;
#define pud_t pgd_t
#define pud_offset(d, va) d
#else
#ifdef CONFIG_SMP
#define QUEUE_SIZE 1
#else
#define QUEUE_SIZE 128
#define pmd_val_ma(v) (v).pud.pgd.pgd;
#endif
#endif

unfortunately this doesn't stop you from using it:
void queue_l2_entry_update(pmd_t *ptr, pmd_t val)
{
    int cpu = smp_processor_id();
    int idx;
    unsigned long flags;
    spin_lock_irqsave(&update_lock, flags);
    idx = per_cpu(mmu_update_queue_idx, cpu);
    per_cpu(update_queue[idx], cpu).ptr = virt_to_machine(ptr);
    per_cpu(update_queue[idx], cpu).val = pmd_val_ma(val);
    increment_index();
    spin_unlock_irqrestore(&update_lock, flags);
}

void xen_l2_entry_update(pmd_t *ptr, pmd_t val)
{
    int cpu = smp_processor_id();
    int idx;
    unsigned long flags;
    spin_lock_irqsave(&update_lock, flags);
    idx = per_cpu(mmu_update_queue_idx, cpu);
    per_cpu(update_queue[idx], cpu).ptr = virt_to_machine(ptr);
    per_cpu(update_queue[idx], cpu).val = pmd_val_ma(val);
    increment_index_and_flush();
    spin_unlock_irqrestore(&update_lock, flags);
}


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.