Steven Rostedt
2007-Apr-18 13:02 UTC
[RFC/PATCH PV_OPS X86_64 17/17] paravirt_ops - pda entry
plain text document attachment (xx-paravirt-pda.patch) We don't actually use this. But we started to. This patch adds a vcpu entry into the PDA. This can come in handy, but we are not sure if we want it. This is why it's in its own little patch. Signed-off-by: Steven Rostedt srostedt@redhat.com Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com> Index: work-nopv/arch/x86_64/kernel/asm-offsets.c ==================================================================--- work-nopv.orig/arch/x86_64/kernel/asm-offsets.c +++ work-nopv/arch/x86_64/kernel/asm-offsets.c @@ -48,6 +48,9 @@ int main(void) ENTRY(cpunumber); ENTRY(irqstackptr); ENTRY(data_offset); + /* XXX: this should probably be a paravirt_ops stub, to be filled in + * with the hypervisor code */ + ENTRY(vcpu); BLANK(); #undef ENTRY #ifdef CONFIG_IA32_EMULATION Index: clean-start/include/asm-x86_64/pda.h ==================================================================--- clean-start.orig/include/asm-x86_64/pda.h +++ clean-start/include/asm-x86_64/pda.h @@ -29,6 +29,7 @@ struct x8664_pda { short isidle; struct mm_struct *active_mm; unsigned apic_timer_irqs; + void *vcpu; } ____cacheline_aligned_in_smp; extern struct x8664_pda *_cpu_pda[]; --
Reasonably Related Threads
- [RFC/PATCH PV_OPS X86_64 17/17] paravirt_ops - pda entry
- [RFC/PATCH PV_OPS X86_64 10/17] paravirt_ops - boot changes
- [RFC/PATCH PV_OPS X86_64 10/17] paravirt_ops - boot changes
- [RFC/PATCH PV_OPS X86_64 11/17] paravirt_ops - asm-offset updates
- [RFC/PATCH PV_OPS X86_64 11/17] paravirt_ops - asm-offset updates