Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Zachary Amsden <zach@...>
Cc: Jeremy Fitzhardinge <jeremy@...>, Anthony Liguori <aliguori@...>, <kvm-devel@...>, <linux-kernel@...>, Avi Kivity <avi@...>
Date: Friday, September 14, 2007 - 5:44 pm

Zachary Amsden wrote:

We're addressing that by blowing away the shadow cache and holding the 
big kvm lock to ensure SMP safety.  Not a great thing to do from a 
performance perspective but the whole point of patching is that the cost 
is amortized.


So then each module creates a hypercall page using this magic MSR and 
the hypervisor has to keep track of it so that it can appropriately 
change the page on migration.  The page can only contain a single 
instruction or else it cannot be easily changed (or you have to be able 
to prevent the guest from being migrated while in the hypercall page).

We're really talking about identical models.  Instead of an MSR, the #GP 
is what tells the hypervisor to update the instruction.  The nice thing 
about this is that you don't have to keep track of all the current 
hypercall page locations in the hypervisor.

Regards,

Anthony Liguori


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

Messages in current thread:
[PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Fri Sep 14, 3:45 pm)
Re: [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Fri Sep 14, 4:53 pm)
Re: [PATCH] Refactor hypercall infrastructure, Rusty Russell, (Fri Sep 14, 10:35 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Fri Sep 14, 5:02 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Fri Sep 14, 5:22 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Fri Sep 14, 5:46 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Fri Sep 14, 5:52 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Fri Sep 14, 6:08 pm)
RE: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Nakajima, Jun, (Fri Sep 14, 6:40 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Fri Sep 14, 7:00 pm)
RE: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Nakajima, Jun, (Fri Sep 14, 8:10 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Fri Sep 14, 8:28 pm)
RE: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Nakajima, Jun, (Fri Sep 14, 9:04 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Sat Sep 15, 12:53 am)
RE: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Nakajima, Jun, (Sat Sep 15, 2:11 am)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Sat Sep 15, 2:23 pm)
RE: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Nakajima, Jun, (Mon Sep 17, 2:14 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Mon Sep 17, 3:15 pm)
RE: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Nakajima, Jun, (Mon Sep 17, 4:52 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Mon Sep 17, 2:27 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Jeremy Fitzhardinge, (Mon Sep 17, 3:15 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Mon Sep 17, 3:33 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Zachary Amsden, (Fri Sep 14, 5:20 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Fri Sep 14, 5:44 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Zachary Amsden, (Fri Sep 14, 11:37 pm)
Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure, Anthony Liguori, (Sat Sep 15, 1:33 pm)