RE: [PATCH RFC] paravirt_ops: refactor struct paravirt_ops into smaller pv_*_ops

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeremy Fitzhardinge <jeremy@...>
Cc: Andi Kleen <ak@...>, Zachary Amsden <zach@...>, Rusty Russell <rusty@...>, Avi Kivity <avi@...>, Glauber de Oliveira Costa <glommer@...>, Anthony Liguori <anthony@...>, Virtualization Mailing List <virtualization@...>, Ingo Molnar <mingo@...>, Thomas Gleixner <tglx@...>, Linux Kernel Mailing List <linux-kernel@...>, Alan Cox <alan@...>
Date: Saturday, September 29, 2007 - 12:55 pm

Jeremy Fitzhardinge wrote:
pv_cpu_ops,
their

To me such atomicity is provided by the "sti" instruction (i.e. the
processor begins responding to external, maskable interrupts _after_ the
next instruction is executed), and there is nothing special with that
combination "sti; hlt" (you can also have like "sti; ret", for example).
So if you define a PV ops like STI(next_instruction), "safe_halt" for
the native should be defined as STI("hlt"), and inlined as "sti; hlt". 

If it's hard or we don't need to expose the semantics of "sti" other
than that, I think it's okay to have a PV operation for safe_halt.

Jun
---
Intel Open Source Technology Center
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC] paravirt_ops: refactor struct paravirt_ops into ..., Jeremy Fitzhardinge, (Fri Sep 28, 2:10 pm)
Re: [PATCH RFC] paravirt_ops: refactor struct paravirt_ops i..., Jeremy Fitzhardinge, (Fri Sep 28, 7:36 pm)
Re: [PATCH RFC] paravirt_ops: refactor struct paravirt_ops i..., Jeremy Fitzhardinge, (Fri Sep 28, 8:40 pm)
RE: [PATCH RFC] paravirt_ops: refactor struct paravirt_ops i..., Nakajima, Jun, (Sat Sep 29, 12:55 pm)
Re: [PATCH RFC] paravirt_ops: refactor struct paravirt_ops i..., Jeremy Fitzhardinge, (Sat Sep 29, 1:01 pm)
Re: [PATCH RFC] paravirt_ops: refactor struct paravirt_ops i..., Jeremy Fitzhardinge, (Fri Sep 28, 2:49 pm)