Re: kvmclock - the host part.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Avi Kivity
Date: Wednesday, November 7, 2007 - 6: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:
Re: [kvm-devel] include files for kvmclock, Glauber de Oliveira ..., (Tue Nov 6, 2:35 pm)
KVM paravirt clocksource - Take 3 out of <put your number ..., Glauber de Oliveira ..., (Tue Nov 6, 3:18 pm)
include files for kvmclock, Glauber de Oliveira ..., (Tue Nov 6, 3:18 pm)
kvmclock - the host part., Glauber de Oliveira ..., (Tue Nov 6, 3:18 pm)
kvmclock implementation, the guest part., Glauber de Oliveira ..., (Tue Nov 6, 3:18 pm)
Re: include files for kvmclock, Jeremy Fitzhardinge, (Tue Nov 6, 3:50 pm)
Re: include files for kvmclock, Glauber de Oliveira ..., (Tue Nov 6, 3:58 pm)
Re: kvmclock - the host part., Avi Kivity, (Tue Nov 6, 10:50 pm)
Re: [kvm-devel] include files for kvmclock, Avi Kivity, (Tue Nov 6, 10:55 pm)
Re: [kvm-devel] include files for kvmclock, Jeremy Fitzhardinge, (Tue Nov 6, 10:58 pm)
Re: [kvm-devel] include files for kvmclock, Akio Takebe, (Wed Nov 7, 1:16 am)
Re: [kvm-devel] include files for kvmclock, Glauber de Oliveira ..., (Wed Nov 7, 5:49 am)
Re: kvmclock - the host part., Glauber de Oliveira ..., (Wed Nov 7, 6:08 am)
Re: [kvm-devel] include files for kvmclock, Glauber de Oliveira ..., (Wed Nov 7, 6:16 am)
Re: [kvm-devel] include files for kvmclock, Akio Takebe, (Wed Nov 7, 6:27 am)
Re: kvmclock - the host part., Avi Kivity, (Wed Nov 7, 6:59 am)