Re: kvmclock - the host part.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Glauber de Oliveira Costa <gcosta@...>
Cc: <linux-kernel@...>, <jeremy@...>, <aliguori@...>, <kvm-devel@...>, <hollisb@...>
Date: Wednesday, November 7, 2007 - 9:59 am

Glauber de Oliveira Costa wrote:

I think kvm_inject_pending_timer_irqs() is called every __vcpu_run(), so 
your cunning plan has been foiled.

Did you mean each guest interrupt of host interrupt?


I think that we should update it every time a heavyweight exit has been 
taken.  That takes care of the tradeoff quite nicely -- heavyweight 
exits are already dog slow.


kvm_write_guest() will eventually be a copy_to_user(), so you need not 
fear the overhead.



Think evil guest that cares not for the well-being of the host.


Can it not be done via the processor startup sequence?  Then there's no 
need for ipis and locking.

I imagine a normal guest initializes the apic in the same way.


What if the guest wants to place it in address 5GB?  That's unlikely for 
Linux and Windows, but let's do it right anyway.

-- 
error compiling committee.c: too many arguments to function

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
KVM paravirt clocksource - Take 3 out of &lt;put your number..., Glauber de Oliveira Costa..., (Tue Nov 6, 6:18 pm)
include files for kvmclock, Glauber de Oliveira Costa..., (Tue Nov 6, 6:18 pm)
Re: [kvm-devel] include files for kvmclock, Akio Takebe, (Wed Nov 7, 4:16 am)
Re: [kvm-devel] include files for kvmclock, Glauber de Oliveira Costa..., (Wed Nov 7, 9:16 am)
Re: [kvm-devel] include files for kvmclock, Akio Takebe, (Wed Nov 7, 9:27 am)
Re: include files for kvmclock, Jeremy Fitzhardinge, (Tue Nov 6, 6:50 pm)
Re: include files for kvmclock, Glauber de Oliveira Costa..., (Tue Nov 6, 6:58 pm)
Re: [kvm-devel] include files for kvmclock, Glauber de Oliveira Costa..., (Tue Nov 6, 5:35 pm)
Re: [kvm-devel] include files for kvmclock, Avi Kivity, (Wed Nov 7, 1:55 am)
Re: [kvm-devel] include files for kvmclock, Jeremy Fitzhardinge, (Wed Nov 7, 1:58 am)
Re: [kvm-devel] include files for kvmclock, Glauber de Oliveira Costa..., (Wed Nov 7, 8:49 am)
kvmclock - the host part., Glauber de Oliveira Costa..., (Tue Nov 6, 6:18 pm)
Re: kvmclock - the host part., Avi Kivity, (Wed Nov 7, 1:50 am)
Re: kvmclock - the host part., Glauber de Oliveira Costa..., (Wed Nov 7, 9:08 am)
Re: kvmclock - the host part., Avi Kivity, (Wed Nov 7, 9:59 am)
kvmclock implementation, the guest part., Glauber de Oliveira Costa..., (Tue Nov 6, 6:18 pm)