login
Header Space

 
 

Re: [Lguest] [PATCH 3/16] read/write_crX, clts and wbinvd for 64-bit paravirt

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Zachary Amsden <zach@...>
Cc: Jeremy Fitzhardinge <jeremy@...>, <lguest@...>, <akpm@...>, <kvm-devel@...>, <linux-kernel@...>, <ak@...>, Keir Fraser <Keir.Fraser@...>, <anthony@...>, <mingo@...>, Glauber de Oliveira Costa <gcosta@...>, <virtualization@...>, <tglx@...>
Date: Thursday, November 1, 2007 - 9:21 pm

Zachary Amsden wrote:

It doesn't say that, so I wouldn't assume it.  Certainly we had problems
with the pda code; until I added the _proxy_pda dependency variable, the
only fix Andi could find was adding both "volatile" and a memory clobber.


Yes.  I think constraints are the only way to control ordering (even if
it's as heavy-handed as a memory clobber).  It would be nice if gcc had
a constraint which was only used for ordering, and never generated a
reference.  Then you could make up pseudo-variables in order to express
dependencies without having the risk that the compiler would generate
references.


Not an immediate problem, fortunately.


Yes.  Any asm which has global effects on how addresses are interpreted
(like tlbflush, reloading the pagetable base, changing modes, etc) needs
to have a memory clobber.


Pretty sure they do.  A normal compiler barrier is *just* a memory clobber.

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

Messages in current thread:
[PATCH 0/7] (Re-)introducing pvops for x86_64 - Real pvops w..., Glauber de Oliveira Costa..., (Wed Oct 31, 3:14 pm)
[PATCH 1/16] Wipe out traditional opt from x86_64 Makefile, Glauber de Oliveira Costa..., (Wed Oct 31, 3:14 pm)
[PATCH 2/16] paravirt hooks at entry functions., Glauber de Oliveira Costa..., (Wed Oct 31, 3:14 pm)
[PATCH 3/16] read/write_crX, clts and wbinvd for 64-bit para..., Glauber de Oliveira Costa..., (Wed Oct 31, 3:14 pm)
Re: [PATCH 3/16] read/write_crX, clts and wbinvd for 64-bit ..., Jeremy Fitzhardinge, (Thu Nov 1, 12:48 am)
Re: [PATCH 3/16] read/write_crX, clts and wbinvd for 64-bit ..., Glauber de Oliveira Costa..., (Thu Nov 1, 9:48 am)
Re: [PATCH 3/16] read/write_crX, clts and wbinvd for 64-bit ..., Jeremy Fitzhardinge, (Thu Nov 1, 11:30 am)
Re: [PATCH 3/16] read/write_crX, clts and wbinvd for 64-bit ..., Jeremy Fitzhardinge, (Thu Nov 1, 1:41 pm)
Re: [Lguest] [PATCH 3/16] read/write_crX, clts and wbinvd fo..., Jeremy Fitzhardinge, (Thu Nov 1, 9:21 pm)
Re: [PATCH 3/16] read/write_crX, clts and wbinvd for 64-bit ..., Glauber de Oliveira Costa..., (Thu Nov 1, 12:13 pm)
[PATCH 4/16] provide native irq initialization function, Glauber de Oliveira Costa..., (Wed Oct 31, 3:14 pm)
[PATCH 5/16] report ring kernel is running without paravirt, Glauber de Oliveira Costa..., (Wed Oct 31, 3:14 pm)
[PATCH 6/16] export math_state_restore, Glauber de Oliveira Costa..., (Wed Oct 31, 3:14 pm)
[PATCH 7/16] native versions for set pagetables, Glauber de Oliveira Costa..., (Wed Oct 31, 3:14 pm)
[PATCH 8/16] add native functions for descriptors handling, Glauber de Oliveira Costa..., (Wed Oct 31, 3:14 pm)
[PATCH 9/16] This patch add provisions for time related func..., Glauber de Oliveira Costa..., (Wed Oct 31, 3:14 pm)
[PATCH 10/16] export cpu_gdt_descr, Glauber de Oliveira Costa..., (Wed Oct 31, 3:14 pm)
[PATCH 11/16] turn priviled operation into a macro in head_6..., Glauber de Oliveira Costa..., (Wed Oct 31, 3:14 pm)
Re: [PATCH 11/16] turn priviled operation into a macro in he..., Jeremy Fitzhardinge, (Thu Nov 1, 12:50 am)
Re: [PATCH 11/16] turn priviled operation into a macro in he..., Glauber de Oliveira Costa..., (Thu Nov 1, 9:50 am)
[PATCH 12/16] tweak io_64.h for paravirt., Glauber de Oliveira Costa..., (Wed Oct 31, 3:14 pm)
[PATCH 13/16] native versions for page table entries values, Glauber de Oliveira Costa..., (Wed Oct 31, 3:14 pm)
[PATCH 14/16] prepare x86_64 architecture initialization for..., Glauber de Oliveira Costa..., (Wed Oct 31, 3:14 pm)
[PATCH 15/16] consolidation of paravirt for 32 and 64 bits, Glauber de Oliveira Costa..., (Wed Oct 31, 3:15 pm)
[PATCH 16/16] make vsmp a paravirt client, Glauber de Oliveira Costa..., (Wed Oct 31, 3:15 pm)
Re: [PATCH 16/16] make vsmp a paravirt client, Jeremy Fitzhardinge, (Thu Nov 1, 12:38 am)
speck-geostationary