login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
December
»
7
Re: [PATCH v2] xen: HVM X2APIC support
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Sheng Yang
Subject:
Re: [PATCH v2] xen: HVM X2APIC support
Date: Monday, December 6, 2010 - 7:04 pm
On Tuesday 07 December 2010 04:40:54 Konrad Rzeszutek Wilk wrote:
quoted text
> > +static inline uint32_t xen_cpuid_base(void) > > +{ > > + uint32_t base, eax, ebx, ecx, edx; > > + char signature[13]; > > + > > + for (base = 0x40000000; base < 0x40010000; base += 0x100) { > > + cpuid(base, &eax, &ebx, &ecx, &edx); > > + *(uint32_t *)(signature + 0) = ebx; > > + *(uint32_t *)(signature + 4) = ecx; > > + *(uint32_t *)(signature + 8) = edx; > > + signature[12] = 0; > > + > > + if (!strcmp("XenVMMXenVMM", signature) && ((eax - base) >= 2)) > > + return base; > > + } > > + > > + return 0; > > +} > > + > > +#ifdef CONFIG_XEN > > +extern bool xen_hvm_need_lapic(void); > > + > > +static inline bool xen_para_available(void) > > +{ > > + return xen_hvm_need_lapic(); > > +} > > +#else > > +static inline bool xen_para_available(void) > > +{ > > + return (xen_cpuid_base() != 0); > > Would it make sense to collapse the kvm_para_available and > the xen_cpuid_base together (and maybe even the HyperV detection code) > together in one and just return "x2_apic_para_capable" ?
Well, no hyper-v now. But put them together is a good idea. -- regards Yang, Sheng --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[PATCH v2] xen: HVM X2APIC support
, Sheng Yang
, (Mon Dec 6, 12:49 am)
Re: [PATCH v2] xen: HVM X2APIC support
, Jeremy Fitzhardinge
, (Mon Dec 6, 11:07 am)
Re: [PATCH v2] xen: HVM X2APIC support
, Konrad Rzeszutek Wilk
, (Mon Dec 6, 1:40 pm)
Re: [PATCH v2] xen: HVM X2APIC support
, Sheng Yang
, (Mon Dec 6, 7:01 pm)
Re: [Xen-devel] Re: [PATCH v2] xen: HVM X2APIC support
, Sheng Yang
, (Mon Dec 6, 7:03 pm)
Re: [PATCH v2] xen: HVM X2APIC support
, Sheng Yang
, (Mon Dec 6, 7:04 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mathieu Desnoyers
[PATCH 01/10] local_t : architecture independant extension
monstr
[PATCH 46/56] microblaze_v2: headers files entry.h current.h mman.h registers.h se...
Ingo Molnar
Re: 2.6.20-rc6-mm3
Mathieu Desnoyers
Re: Linux 2.6.25-rc2
Jan Engelhardt
Re: Linux Security *Module* Framework (Was: LSM conversion to static interface)
git
:
Andy Parkins
git-fetch fails with error code 128
Eli Zaretskii
Re: Switching from CVS to GIT
Johannes Sixt
Re: [PATCH v2 04/13] Teach rebase interactive the mark command
Dan Chokola
Re: how do you "force a pull"?
Steffen Prohaska
Re: [msysGit] Re: [PATCH 12/12] [TODO] setup: bring changes from 4msysgit/next to ...
git-commits-head
:
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
MIPS: SMTC: Fix lockup in smtc_distribute_timer
Linux Kernel Mailing List
Input: gpio-keys - add support for disabling gpios through sysfs
Linux Kernel Mailing List
[ARM] 5562/2: at91: add gpio button support for at91sam9g20ek
linux-netdev
:
jamal
[net-next-2.6 PATCH 1/7] xfrm: introduce basic mark infrastructure
jamal
[net-next-2.6 PATCH 0/7] xfrm by MARK
Grant Coady
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Jeff Garzik
Re: [PATCH 1/5] sky2: phy setup changes
openbsd-misc
:
Ashraf Cotu
Je sur comptable a la banque BCB je vais virée $6.million a la etranger
ropers
Re: Real men don't attack straw men
Pawlowski Marcin Piotr
Re: current on HP EliteBook 8530w
Tony Abernethy
Re: The Atheros story in much fewer words
S H
Re: Short thank you and gratitude note for constant OpenBSD improvements/evolutions!
Colocation donated by:
Syndicate