On Tuesday 19 August 2008, ehrhardt@xxxxxxxxxxxxxxxxxx wrote:> +static inline long kvm_hypercall1(unsigned int nr, unsigned long p1)> +{> + register unsigned long hcall asm ("r0") = nr;> + register unsigned long arg1 asm ("r3") = p1;> + register long ret asm ("r11");> +> + asm volatile(".long %1"> + : "=r"(ret)> + : "i"(KVM_HYPERCALL_BIN), "r"(hcall), "r"(arg1)> + : "r4", "r5", "r6", "r7", "r8",> + "r9", "r10", "r12", "cc");> + return ret;> +} What is the reasoning for making the calling convention different fromall the existing hcall interfaces here? pseries uses r3 for the hcall number, lv1 and beat use r11, so usingr0 just for the sake of being different seems counterintuitive. Arnd <><ÿôèº{.nÇ+?·?®??+%?Ëÿ±éݶ¥?wÿº{.nÇ+?·¤¾oé¥Ïâ?Ø^n?r¡ö¦zË?ëh?¨èÚ&£ûàz¿äz¹Þ?ú+?Ê+zf£¢·h??§~??Ûiÿÿï?êÿ?êçz_è®æj:+v?¨þ)ߣøm