diff for duplicates of <200808191328.16934.arnd@arndb.de> diff --git a/a/1.txt b/N1/1.txt index b5355c5..4f3a082 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,23 +1,15 @@ -On Tuesday 19 August 2008, ehrhardt@linux.vnet.ibm.com 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 from -all the existing hcall interfaces here? - -pseries uses r3 for the hcall number, lv1 and beat use r11, so using -r0 just for the sake of being different seems counterintuitive. - - Arnd <>< -ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¤¾oé¥ÏâØ^nr¡ö¦zË\x1aëh¨èÚ&£ûàz¿äz¹Þú+Ê+zf£¢·h§~Ûiÿÿïêÿêçz_è®\x0fæj:+v¨þ)ߣøm +T24gVHVlc2RheSAxOSBBdWd1c3QgMjAwOCwgZWhyaGFyZHRAbGludXgudm5ldC5pYm0uY29tIHdy +b3RlOgo+ICtzdGF0aWMgaW5saW5lIGxvbmcga3ZtX2h5cGVyY2FsbDEodW5zaWduZWQgaW50IG5y +LCB1bnNpZ25lZCBsb25nIHAxKQo+ICt7Cj4gK6CgoKCgoKByZWdpc3RlciB1bnNpZ25lZCBsb25n +IGhjYWxsIGFzbSAoInIwIikgPSBucjsKPiAroKCgoKCgoHJlZ2lzdGVyIHVuc2lnbmVkIGxvbmcg +YXJnMSBhc20gKCJyMyIpID0gcDE7Cj4gK6CgoKCgoKByZWdpc3RlciBsb25nIHJldCBhc20gKCJy +MTEiKTsKPiArCj4gK6CgoKCgoKBhc20gdm9sYXRpbGUoIi5sb25nICUxIgo+ICugoKCgoKCgoKCg +oKCgoKCgoKCgoKCgoDogIj1yIihyZXQpCj4gK6CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgOiAiaSIo +S1ZNX0hZUEVSQ0FMTF9CSU4pLCAiciIoaGNhbGwpLCAiciIoYXJnMSkKPiAroKCgoKCgoKCgoKCg +oKCgoKCgoKCgoKA6ICJyNCIsICJyNSIsICJyNiIsICJyNyIsICJyOCIsCj4gK6CgoKCgoKCgoKCg +oKCgoKCgoKCgoKCgIKAicjkiLCAicjEwIiwgInIxMiIsICJjYyIpOwo+ICugoKCgoKCgcmV0dXJu +IHJldDsKPiArfQoKV2hhdCBpcyB0aGUgcmVhc29uaW5nIGZvciBtYWtpbmcgdGhlIGNhbGxpbmcg +Y29udmVudGlvbiBkaWZmZXJlbnQgZnJvbQphbGwgdGhlIGV4aXN0aW5nIGhjYWxsIGludGVyZmFj +ZXMgaGVyZT8KCnBzZXJpZXMgdXNlcyByMyBmb3IgdGhlIGhjYWxsIG51bWJlciwgbHYxIGFuZCBi +ZWF0IHVzZSByMTEsIHNvIHVzaW5nCnIwIGp1c3QgZm9yIHRoZSBzYWtlIG9mIGJlaW5nIGRpZmZl +cmVudCBzZWVtcyBjb3VudGVyaW50dWl0aXZlLgoKCUFybmQgPD48Cg== diff --git a/a/content_digest b/N1/content_digest index 21d63e1..ea7dd7a 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,34 +2,26 @@ "ref\01219142204-12044-3-git-send-email-ehrhardt@linux.vnet.ibm.com\0" "From\0Arnd Bergmann <arnd@arndb.de>\0" "Subject\0Re: [PATCH 2/4] kvmppc: add hypercall infrastructure - guest part\0" - "Date\0Tue, 19 Aug 2008 11:28:16 +0000\0" + "Date\0Tue, 19 Aug 2008 13:28:16 +0200\0" "To\0linuxppc-dev@ozlabs.org\0" "Cc\0hollisb@us.ibm.com" " kvm-ppc@vger.kernel.org\0" "\00:1\0" "b\0" - "On Tuesday 19 August 2008, ehrhardt@linux.vnet.ibm.com wrote:\n" - "> +static inline long kvm_hypercall1(unsigned int nr, unsigned long p1)\n" - "> +{\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240register unsigned long hcall asm (\"r0\") = nr;\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240register unsigned long arg1 asm (\"r3\") = p1;\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240register long ret asm (\"r11\");\n" - "> +\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240asm volatile(\".long %1\"\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240: \"=r\"(ret)\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240: \"i\"(KVM_HYPERCALL_BIN), \"r\"(hcall), \"r\"(arg1)\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240: \"r4\", \"r5\", \"r6\", \"r7\", \"r8\",\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240\302\240 \302\240\"r9\", \"r10\", \"r12\", \"cc\");\n" - "> +\302\240\302\240\302\240\302\240\302\240\302\240\302\240return ret;\n" - "> +}\n" - "\n" - "What is the reasoning for making the calling convention different from\n" - "all the existing hcall interfaces here?\n" - "\n" - "pseries uses r3 for the hcall number, lv1 and beat use r11, so using\n" - "r0 just for the sake of being different seems counterintuitive.\n" - "\n" - "\tArnd <><\n" - "\303\277\303\264\303\250\302\272{.n\303\207+\302\211\302\267\302\237\302\256\302\211\302\255\302\206+%\302\212\303\213\303\277\302\261\303\251\303\235\302\266\027\302\245\302\212w\303\277\302\272{.n\303\207+\302\211\302\267\302\244\302\276o\303\251\302\245\303\217\303\242\302\236\303\230^n\302\207r\302\241\303\266\302\246z\303\213\032\302\201\303\253h\302\231\302\250\303\250\302\255\303\232&\302\243\303\273\303\240z\302\277\303\244z\302\271\303\236\302\227\303\272+\302\200\303\212+zf\302\243\302\242\302\267h\302\232\302\210\302\247~\302\206\302\255\302\206\303\233i\303\277\303\277\303\257\302\201\303\252\303\277\302\221\303\252\303\247z_\303\250\302\256\017\303\246j:+v\302\211\302\250\303\276)\303\237\302\243\303\270m" + "T24gVHVlc2RheSAxOSBBdWd1c3QgMjAwOCwgZWhyaGFyZHRAbGludXgudm5ldC5pYm0uY29tIHdy\n" + "b3RlOgo+ICtzdGF0aWMgaW5saW5lIGxvbmcga3ZtX2h5cGVyY2FsbDEodW5zaWduZWQgaW50IG5y\n" + "LCB1bnNpZ25lZCBsb25nIHAxKQo+ICt7Cj4gK6CgoKCgoKByZWdpc3RlciB1bnNpZ25lZCBsb25n\n" + "IGhjYWxsIGFzbSAoInIwIikgPSBucjsKPiAroKCgoKCgoHJlZ2lzdGVyIHVuc2lnbmVkIGxvbmcg\n" + "YXJnMSBhc20gKCJyMyIpID0gcDE7Cj4gK6CgoKCgoKByZWdpc3RlciBsb25nIHJldCBhc20gKCJy\n" + "MTEiKTsKPiArCj4gK6CgoKCgoKBhc20gdm9sYXRpbGUoIi5sb25nICUxIgo+ICugoKCgoKCgoKCg\n" + "oKCgoKCgoKCgoKCgoDogIj1yIihyZXQpCj4gK6CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgOiAiaSIo\n" + "S1ZNX0hZUEVSQ0FMTF9CSU4pLCAiciIoaGNhbGwpLCAiciIoYXJnMSkKPiAroKCgoKCgoKCgoKCg\n" + "oKCgoKCgoKCgoKA6ICJyNCIsICJyNSIsICJyNiIsICJyNyIsICJyOCIsCj4gK6CgoKCgoKCgoKCg\n" + "oKCgoKCgoKCgoKCgIKAicjkiLCAicjEwIiwgInIxMiIsICJjYyIpOwo+ICugoKCgoKCgcmV0dXJu\n" + "IHJldDsKPiArfQoKV2hhdCBpcyB0aGUgcmVhc29uaW5nIGZvciBtYWtpbmcgdGhlIGNhbGxpbmcg\n" + "Y29udmVudGlvbiBkaWZmZXJlbnQgZnJvbQphbGwgdGhlIGV4aXN0aW5nIGhjYWxsIGludGVyZmFj\n" + "ZXMgaGVyZT8KCnBzZXJpZXMgdXNlcyByMyBmb3IgdGhlIGhjYWxsIG51bWJlciwgbHYxIGFuZCBi\n" + "ZWF0IHVzZSByMTEsIHNvIHVzaW5nCnIwIGp1c3QgZm9yIHRoZSBzYWtlIG9mIGJlaW5nIGRpZmZl\n" + cmVudCBzZWVtcyBjb3VudGVyaW50dWl0aXZlLgoKCUFybmQgPD48Cg== -5ab2e32b2b2589276836e4bebcedddec31ef2a6a167d329c625fa31e96ba511b +0dd44a1df206fa0418cc517abe73ccdf18c13e30d32a817bc28c635ced21a70c
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.