login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
November
»
29
Re: linux-next: Tree for November 22 (kvm)
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Randy Dunlap
Subject:
Re: linux-next: Tree for November 22 (kvm)
Date: Monday, November 29, 2010 - 12:05 pm
On 11/29/10 10:08, Zachary Amsden wrote:
quoted text
> On 11/29/2010 07:52 AM, Randy Dunlap wrote: >> On 11/29/10 09:47, Zachary Amsden wrote: >> >>> On 11/29/2010 06:35 AM, Avi Kivity wrote: >>> >>>> On 11/29/2010 06:33 PM, Randy Dunlap wrote: >>>> >>>>> On Mon, 22 Nov 2010 13:26:27 -0800 Randy Dunlap wrote: >>>>> >>>>> >>>>>> On Mon, 22 Nov 2010 13:49:11 +1100 Stephen Rothwell wrote: >>>>>> >>>>>> >>>>>>> Hi all, >>>>>>> >>>>>>> Changes since 20101119: >>>>>>> >>>>>> >>>>>> kvm.c:(.init.text+0x11f49): undefined reference to >>>>>> >>>>> `kvm_register_clock' >>>>> >>>>>> when CONFIG_KVM_CLOCK is not enabled. >>>>>> >>>>> >>>>> BUild error still present in linux-next-2010-NOV-29. >>>>> >>>>> >>>> Glauber, Zach? >>>> >>>> >>> I can only speculate this reference is being called from smpboot without >>> CONFIG guarding? >>> >> Sorry, looks like I dropped the first line of the error messages: >> >> arch/x86/built-in.o: In function `kvm_smp_prepare_boot_cpu': >> kvm.c:(.init.text+0xad38): undefined reference to `kvm_register_clock' >> >> from arch/x86/kernel/kvm.c: >> >> #ifdef CONFIG_SMP >> static void __init kvm_smp_prepare_boot_cpu(void) >> { >> WARN_ON(kvm_register_clock("primary cpu clock")); >> kvm_guest_cpu_init(); >> native_smp_prepare_boot_cpu(); >> } >> >> so it looks like you are correct... >> > > Looks like this is the appropriate fix: > > #ifdef CONFIG_SMP > static void __init kvm_smp_prepare_boot_cpu(void) > { > #ifdef CONFIG_KVM_CLOCK > WARN_ON(kvm_register_clock("primary cpu clock")); > #endif > kvm_guest_cpu_init(); > native_smp_prepare_boot_cpu(); > }
Sure, that works. Thanks.
quoted text
> > The SMP code is still buggy as well, wrt printk timing, in that it > doesn't get called early enough, correct? Has anyone thought of a good > solution to that problem? > > Basically the problem is CPU-1 will get CPU-0's per-cpu areas copied > over, and these are not valid for CPU-1. If the clocksource is used on > CPU-1 before kvm clock gets setup, it can go backwards, wreaking havoc, > causing panic, etc. > > What is the best test to guard against this? Perhaps we should keep the > CPU number in the per-cpu data and test against it?
-- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** --
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:
linux-next: Tree for November 22
, Stephen Rothwell
, (Sun Nov 21, 7:49 pm)
Re: linux-next: Tree for November 22
, Zimny Lech
, (Mon Nov 22, 5:47 am)
Re: linux-next: Tree for November 22
, Zimny Lech
, (Mon Nov 22, 8:37 am)
Re: linux-next: Tree for November 22
, Greg KH
, (Mon Nov 22, 12:46 pm)
Re: linux-next: Tree for November 22
, Zimny Lech
, (Mon Nov 22, 12:55 pm)
RE: linux-next: Tree for November 22
, Arend Van Spriel
, (Mon Nov 22, 1:08 pm)
Re: linux-next: Tree for November 22 (kvm)
, Randy Dunlap
, (Mon Nov 22, 2:26 pm)
Re: linux-next: Tree for November 22
, Greg KH
, (Mon Nov 22, 2:31 pm)
Re: linux-next: Tree for November 22 (kvm)
, Randy Dunlap
, (Mon Nov 29, 9:33 am)
Re: linux-next: Tree for November 22 (kvm)
, Avi Kivity
, (Mon Nov 29, 9:35 am)
Re: linux-next: Tree for November 22 (kvm)
, Zachary Amsden
, (Mon Nov 29, 10:47 am)
Re: linux-next: Tree for November 22 (kvm)
, Randy Dunlap
, (Mon Nov 29, 10:52 am)
Re: linux-next: Tree for November 22 (kvm)
, Zachary Amsden
, (Mon Nov 29, 11:08 am)
Re: linux-next: Tree for November 22 (kvm)
, Randy Dunlap
, (Mon Nov 29, 12:05 pm)
Re: linux-next: Tree for November 22 (kvm)
, Glauber Costa
, (Tue Nov 30, 5:17 am)
Re: linux-next: Tree for November 22 (kvm)
, Zachary Amsden
, (Tue Nov 30, 11:09 am)
Re: linux-next: Tree for November 22 (kvm)
, Randy Dunlap
, (Fri Dec 10, 10:18 am)
Re: linux-next: Tree for November 22 (kvm)
, Avi Kivity
, (Sun Dec 12, 2:23 am)
Re: linux-next: Tree for November 22 (kvm)
, Avi Kivity
, (Thu Dec 16, 2:37 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mel Gorman
Re: [PATCH 1/4] vmstat: remove zone->lock from walk_zones_in_node
Guenter Roeck
Re: [lm-sensors] Location for thermal drivers
David Woodhouse
Re: RFC: Moving firmware blobs out of the kernel.
Siddha, Suresh B
Re: [PATCH 2.6.21 review I] [11/25] x86: default to physical mode on hotplug CPU k...
Peter Zijlstra
Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
git-commits-head
:
Linux Kernel Mailing List
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
Linux Kernel Mailing List
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
Linux Kernel Mailing List
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Linux Kernel Mailing List
[Bluetooth] Initiate authentication during connection establishment
Linux Kernel Mailing List
[POWERPC] 4xx: Add ppc40x_defconfig
linux-netdev
:
MERCEDES
Your mail id has won 950,000.00 in the MERCEDES Benz Online Promo.for claims send:
David Miller
Re: [PATCH] xen/netfront: do not mark packets of length < MSS as GSO
David Miller
Re: skb_segment() questions
Shan Wei
[RFC PATCH net-next 2/5]IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeou...
Stanislaw Gruszka
[PATCH 1/4] bnx2x: use smp_mb() to keep ordering of read write operations
git
:
Nicolas Sebrecht
git-svn died of signal 11 (was "3 failures on test t9100 (svn)")
Junio C Hamano
Re: [PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
Martin Langhoff
Re: [PATCH] GIT commit statistics.
Alexandre Julliard
[PATCH] gitweb: Put back shortlog instead of graphiclog in the project list.
Josh Triplett
[PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
openbsd-misc
:
Taisto Qvist XX
Re: AMD GEODE LX-800 just works with kernel from install42.iso and kernelpanics wi...
Nico Meijer
Re: gOS Develop Kit with VIA pc-1 Processor Platform VIA C7-D
Andreas Bihlmaier
Re: jetway board sensors (Fintek F71805F)
admin
Drive a 2009 car from R799p/m
Antti Harri
Re: how to create a sha256 hash
Colocation donated by:
Syndicate