[Lguest] [PATCH 25/25] [PATCH] add paravirtualization support for x86_64

Andi Kleen ak at suse.de
Fri Aug 10 00:26:09 EST 2007


> This has to match the normal C calling convention though, doesn't it?

Native cli/sti/save/restore_flags are all only assembly and can be easily
(in fact more easily than in C) written as pure assembler functions. Then
you can use whatever calling convention you want.

While some paravirt implementations may have more complicated implementations
i guess it's still a reasonable requirement to make them simple enough 
in pure assembler. If not they can use a trampoline, but that's hopefully
not needed.

-Andi




More information about the Lguest mailing list