login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
November
»
13
RE: [kvm-devel] [PATCH 2/3] kvmclock - the host part.
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [author]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Dong, Eddie <eddie.dong@...>
To: Glauber de Oliveira Costa <gcosta@...>, <linux-kernel@...>
Cc: <jeremy@...>, <hollisb@...>, <kvm-devel@...>, <avi@...>
Subject:
RE: [kvm-devel] [PATCH 2/3] kvmclock - the host part.
Date: Tuesday, November 13, 2007 - 1:00 am
> +static void kvm_write_guest_time(struct kvm_vcpu *vcpu) +{
quoted text
> + struct timespec ts; > + int r; > + > + if (!vcpu->clock_gpa) > + return; > + > + /* Updates version to the next odd number, indicating > we're writing */ > + vcpu->hv_clock.version++; > + kvm_write_guest(vcpu->kvm, vcpu->clock_gpa, > &vcpu->hv_clock, PAGE_SIZE); > + > + kvm_get_msr(vcpu, MSR_IA32_TIME_STAMP_COUNTER, > + &vcpu->hv_clock.last_tsc); > + > + ktime_get_ts(&ts);
Do we need to disable preemption here?
quoted text
> + vcpu->hv_clock.now_ns = ts.tv_nsec + (NSEC_PER_SEC * > (u64)ts.tv_sec); + vcpu->hv_clock.wc_sec = get_seconds(); > + vcpu->hv_clock.version++; > + kvm_write_guest(vcpu->kvm, vcpu->clock_gpa, > &vcpu->hv_clock, PAGE_SIZE); > +} > +
thx,eddie -
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 0/3] Kvm clocksource, new spin
, Glauber de Oliveira Costa...
, (Thu Nov 8, 6:39 pm)
[PATCH 1/3] include files for kvmclock
, Glauber de Oliveira Costa...
, (Thu Nov 8, 6:39 pm)
Re: [PATCH 1/3] include files for kvmclock
, Gerd Hoffmann
, (Fri Nov 9, 4:37 am)
Re: [PATCH 1/3] include files for kvmclock
, Avi Kivity
, (Sun Nov 11, 5:15 am)
[PATCH 2/3] kvmclock - the host part.
, Glauber de Oliveira Costa...
, (Thu Nov 8, 6:39 pm)
RE: [kvm-devel] [PATCH 2/3] kvmclock - the host part.
, Dong, Eddie
, (Tue Nov 13, 1:00 am)
Re: [kvm-devel] [PATCH 2/3] kvmclock - the host part.
, Glauber de Oliveira Costa...
, (Tue Nov 13, 7:54 am)
Re: [kvm-devel] [PATCH 2/3] kvmclock - the host part.
, Avi Kivity
, (Tue Nov 13, 10:47 am)
RE: [kvm-devel] [PATCH 2/3] kvmclock - the host part.
, Dong, Eddie
, (Tue Nov 13, 11:23 am)
Re: [kvm-devel] [PATCH 2/3] kvmclock - the host part.
, Avi Kivity
, (Tue Nov 13, 12:12 pm)
RE: [kvm-devel] [PATCH 2/3] kvmclock - the host part.
, Dong, Eddie
, (Tue Nov 13, 8:41 pm)
Re: [kvm-devel] [PATCH 2/3] kvmclock - the host part.
, Izik Eidus
, (Tue Nov 13, 8:08 am)
Re: [PATCH 2/3] kvmclock - the host part.
, Avi Kivity
, (Sun Nov 11, 6:17 am)
Re: [PATCH 2/3] kvmclock - the host part.
, Glauber de Oliveira Costa...
, (Tue Nov 13, 7:28 am)
Re: [PATCH 2/3] kvmclock - the host part.
, Avi Kivity
, (Tue Nov 13, 10:44 am)
[PATCH 3/3] kvmclock implementation, the guest part.
, Glauber de Oliveira Costa...
, (Thu Nov 8, 6:39 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Linus Torvalds
Linux 2.6.27-rc5
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
Trent Piepho
Re: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code
git
:
linux-netdev
:
Christoph Hellwig
Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2]
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
6 users
and
611 guests
online.
Online users
fireratedsteel
ez_wpthemes
portlandcarins
posters5suuhwkj
carlo331
greggtdowling
Syndicate