[{"id":1766582,"web_url":"http://patchwork.ozlabs.org/comment/1766582/","msgid":"<aa266e28-853b-4703-8495-8fa862aea106@gmx.com>","list_archive_url":null,"date":"2017-09-11T21:44:30","subject":"Re: [Qemu-devel] [PATCH v2 5/5] tcg: restrict i386 regs definitions","submitter":{"id":11273,"url":"http://patchwork.ozlabs.org/api/people/11273/","name":"Kamil Rytarowski","email":"n54@gmx.com"},"content":"On 11.09.2017 23:33, Philippe Mathieu-Daudé wrote:\n> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>\n> ---\n> cleaning while here :)\n> \n>  accel/tcg/user-exec.c | 18 +++++++++---------\n>  1 file changed, 9 insertions(+), 9 deletions(-)\n> \n> diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c\n> index 2a975eaf69..484a3f5f8f 100644\n> --- a/accel/tcg/user-exec.c\n> +++ b/accel/tcg/user-exec.c\n> @@ -25,15 +25,6 @@\n>  #include \"exec/cpu_ldst.h\"\n>  #include \"translate-all.h\"\n>  \n> -#undef EAX\n> -#undef ECX\n> -#undef EDX\n> -#undef EBX\n> -#undef ESP\n> -#undef EBP\n> -#undef ESI\n> -#undef EDI\n> -#undef EIP\n>  #ifdef __linux__\n>  #include <sys/ucontext.h>\n>  #endif\n> @@ -131,6 +122,15 @@ static inline int handle_cpu_signal(uintptr_t pc, unsigned long address,\n>  }\n>  \n>  #if defined(__i386__)\n> +#undef EAX\n> +#undef ECX\n> +#undef EDX\n> +#undef EBX\n> +#undef ESP\n> +#undef EBP\n> +#undef ESI\n> +#undef EDI\n> +#undef EIP\n>  \n>  #if defined(__NetBSD__)\n>  #include <ucontext.h>\n> \n\nWhy to move under i386?\n\nSmartOS pollutes namespace with these symbols on x86_64.","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrhHW1jdsz9sBZ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 07:43:02 +1000 (AEST)","from localhost ([::1]:60743 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1drWTr-0007RQ-Ma\n\tfor incoming@patchwork.ozlabs.org; Mon, 11 Sep 2017 17:42:59 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:47951)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from <n54@gmx.com>)\n\tid 1drWTY-0007Qx-GK\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 17:42:41 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <n54@gmx.com>) id 1drWTT-0005ba-GJ\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 17:42:40 -0400","from mout.gmx.net ([212.227.15.19]:56200)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <n54@gmx.com>) id 1drWTT-0005Yq-52\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 17:42:35 -0400","from [192.168.1.3] ([185.58.161.191]) by mail.gmx.com (mrgmx002\n\t[212.227.17.184]) with ESMTPSA (Nemesis) id 0M7pI0-1dVkSG2KR6-00vKun; \n\tMon, 11 Sep 2017 23:42:16 +0200"],"To":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>,\n\tPaolo Bonzini <pbonzini@redhat.com>,\n\tRichard Henderson <rth@twiddle.net>, Peter Crosthwaite\n\t<crosthwaite.peter@gmail.com>, \tThomas Huth <thuth@redhat.com>","References":"<20170911213328.9701-1-f4bug@amsat.org>\n\t<20170911213328.9701-6-f4bug@amsat.org>","From":"Kamil Rytarowski <n54@gmx.com>","Message-ID":"<aa266e28-853b-4703-8495-8fa862aea106@gmx.com>","Date":"Mon, 11 Sep 2017 23:44:30 +0200","User-Agent":"Mozilla/5.0 (X11; NetBSD amd64; rv:52.0) Gecko/20100101\n\tThunderbird/52.1.0","MIME-Version":"1.0","In-Reply-To":"<20170911213328.9701-6-f4bug@amsat.org>","Content-Type":"multipart/signed; micalg=pgp-sha256;\n\tprotocol=\"application/pgp-signature\";\n\tboundary=\"U7hftUUmkm2T8p4FB0QitsganAIJCI6el\"","X-Provags-ID":"V03:K0:wgNOLjIIZ2hSYARQfs6tyKiwi98NvH1J+lW952oWH5KuC/30B+Y\n\t3g9Pn8/XJCGmzph0u4sn13cb/wFr9b0bxhbUULNmcYFmOofdtyn8TOi13SDbLASe9q/HVz9\n\tsI6DQsmEdyze0qIrO70uoaJh05e89h46wW8cB+zSCvXuTk5iEYPeBoDoP1HU4aq2vdssJfE\n\tnzYCV4bC6qusM+OLsSlLA==","X-UI-Out-Filterresults":"notjunk:1; V01:K0:OKuPNxzOvoc=:sx98Fb9TqRSyiWrnUyNUEM\n\tWM6CS9QZlzKehZDh3AUY39O7YRQk3v120WadAnMSERZtcH5Yb+3Sei0rcTkGyq6G10NBRVIJu\n\tsiA/G80bOdrsiA576XxSALRU9yb6Asd6xORgqf7FRNDyoFKHjMk7U8KihRJMhOnRk/c2Apk1A\n\tJH0AljG670VYGoegaZ7E8tDhFp7dxqco/ujC0OnkrKqOoniYP0WUHaC0+UIUobPclUR5io7AI\n\taHxk94D+9LP14JQ+ue7iNDHj18KAv2L2d6GMreaB8t48zjBGSTJz6K0VWBL502VJI0p7Ddih+\n\tq0IU2XFhziRQZifwlnpTgo5q4a0oMVY5Pve5MRVCrRKXNELbJhzPkwihEx9lcgp/Q/Jcx2bkl\n\t9RvuA9MbRVGV7iMSdOwPr2nRg4JqVIr7+a6M1TsTM+Fvx1s46farwPsB8NjIlVZNyPuybUR1F\n\tn3Yx9BVIF7Ttn96p6xNs+6NzEOgn7g9sHFJmh0/7nOEf7f9VLlKLENRaXSaUgeFXBpE43aHPf\n\tENBNDEXDFROqwU0AcHUHY27TYit4zZMb5v03EEc9yUHVg0D0pmLDdzKQ9RkIQJfXjN0PmfTES\n\tX0dd6s2WvB+mx3huvTkrKjcFzgs9QHhTW3vFtttIfPDJXz0wRbj3dr5ZFh/RalZZTlgAF2kSD\n\ttdDjOxnu2b5maACr3g81+ERK3wFRQBgEOwDdILPmrpBwQ0Zs5fDegTrXKgkbZlKVtvwFVCmoY\n\tqtkXafnreABn1Jxx4mJkYHdhTnDQEhyA++yqyu+JD/5Jujq7VeXhQSkvO7IAndKT5q+stIVfG\n\t23JlBL/f0iacNgZwe1ply0VbfhMSQ==","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]","X-Received-From":"212.227.15.19","X-Content-Filtered-By":"Mailman/MimeDel 2.1.21","Subject":"Re: [Qemu-devel] [PATCH v2 5/5] tcg: restrict i386 regs definitions","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"qemu-devel@nongnu.org","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}},{"id":1766605,"web_url":"http://patchwork.ozlabs.org/comment/1766605/","msgid":"<9bdda758-c62c-cb04-15cd-1e93bd1664f7@amsat.org>","list_archive_url":null,"date":"2017-09-11T22:13:39","subject":"Re: [Qemu-devel] [PATCH v2 5/5] tcg: restrict i386 regs definitions","submitter":{"id":70924,"url":"http://patchwork.ozlabs.org/api/people/70924/","name":"Philippe Mathieu-Daudé","email":"f4bug@amsat.org"},"content":"On 09/11/2017 06:44 PM, Kamil Rytarowski wrote:\n> On 11.09.2017 23:33, Philippe Mathieu-Daudé wrote:\n>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>\n>> ---\n>> cleaning while here :)\n>>\n>>   accel/tcg/user-exec.c | 18 +++++++++---------\n>>   1 file changed, 9 insertions(+), 9 deletions(-)\n>>\n>> diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c\n>> index 2a975eaf69..484a3f5f8f 100644\n>> --- a/accel/tcg/user-exec.c\n>> +++ b/accel/tcg/user-exec.c\n>> @@ -25,15 +25,6 @@\n>>   #include \"exec/cpu_ldst.h\"\n>>   #include \"translate-all.h\"\n>>   \n>> -#undef EAX\n>> -#undef ECX\n>> -#undef EDX\n>> -#undef EBX\n>> -#undef ESP\n>> -#undef EBP\n>> -#undef ESI\n>> -#undef EDI\n>> -#undef EIP\n>>   #ifdef __linux__\n>>   #include <sys/ucontext.h>\n>>   #endif\n>> @@ -131,6 +122,15 @@ static inline int handle_cpu_signal(uintptr_t pc, unsigned long address,\n>>   }\n>>   \n>>   #if defined(__i386__)\n>> +#undef EAX\n>> +#undef ECX\n>> +#undef EDX\n>> +#undef EBX\n>> +#undef ESP\n>> +#undef EBP\n>> +#undef ESI\n>> +#undef EDI\n>> +#undef EIP\n>>   \n>>   #if defined(__NetBSD__)\n>>   #include <ucontext.h>\n>>\n> \n> Why to move under i386?\n\nI tracked the origin of these #defines in op-i386.c (7bfdb6d18c7b) and \nthought the Exx naming was for i386 while the x86_64 uses the Rxx naming \n(RAX .. RIP) so you'd only have them on i386 arch.\nHowever it seems I didn't realize you can access x86_64 registers in \n32-bit mode via the EAX .. EIP naming, as you see I'm not confident with \nthis CISC arch :S\n\nSo I guess it's best to ignore this patch?\n\n> \n> SmartOS pollutes namespace with these symbols on x86_64.\n> \n\nyou should provide some VM :P\n\nI plan to test this project soon:\nhttps://www.packer.io/docs/builders/qemu.html\n\nRegards,\n\nPhil.","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"TcEx7cFL\"; dkim-atps=neutral"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrhzb6xkTz9s81\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 08:14:19 +1000 (AEST)","from localhost ([::1]:60840 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1drWyA-00034E-3Z\n\tfor incoming@patchwork.ozlabs.org; Mon, 11 Sep 2017 18:14:18 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:55624)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1drWxf-000341-0U\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 18:13:48 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1drWxb-0000s7-Qq\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 18:13:46 -0400","from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:34695)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>)\n\tid 1drWxb-0000rr-LO\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 18:13:43 -0400","by mail-qt0-x243.google.com with SMTP id q8so6386650qtb.1\n\tfor <qemu-devel@nongnu.org>; Mon, 11 Sep 2017 15:13:43 -0700 (PDT)","from [192.168.1.10] ([181.93.89.178])\n\tby smtp.gmail.com with ESMTPSA id\n\tc185sm6546933qke.60.2017.09.11.15.13.40\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 11 Sep 2017 15:13:42 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=nv6Vul7i1hq9tBa+52Atxsi2mZDHSkGLpV/iklYuO3I=;\n\tb=TcEx7cFLzAPSDZO84FNPYy8UgEccMg8/nVoyE2ss7EKyrQYmm2ypuVa/RvYcNPNRuQ\n\tYcKVpnuRmH+BElEsk7UJcH6irab772cUwTX57lNV8j4Yb28U44O9z0ZHouyXledxAjOz\n\tFab3l10qhciBay4eNCUmhq1hrJo56QGWNvZ+VKcr8D51H9hxEFLnalxtEe7Y3c9Goy+N\n\tkQx38DkNmlXPH5fUb1l+Q2UgbahPGuXGosPb2Du7hJoAoisCJLDCy65sCU2zASRuY5aT\n\tNdhql6pHP4qUWGJ96UfA9SkYRU18MaoEz4+CmcSQ+Irj/skteaTgMhLS9I4vkrXe0Fjo\n\tH5dg==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:subject:to:cc:references:from:message-id\n\t:date:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=nv6Vul7i1hq9tBa+52Atxsi2mZDHSkGLpV/iklYuO3I=;\n\tb=OflBDouNkW28A/PFjfCGSjXBcAuOB7I6e+1tpNGKGCef3K8Ws79tJw5C7yn1b/aU0x\n\t497iy2qjGFI/OSzyy5obv/BdJLfXQgbYNWn6t6aj+itk0GxGKOTvSnofQyfL0qZcVx6j\n\tAQWJ9lNDq3Z9AuylSwpWnT0NtglVz6yKUuvDpFPAjze0JNO+dhhr49yOcpVcPFf9ueE1\n\tgQH+4CqtH3CmrivM1W3pOOLqG0MZAmCujoEpL0WGQem31eIPqjXAMKPRhRo8h4GnDJyD\n\t3KAarp466dri1eDeBtO+1WFnfwxXRGWIsLa4cK7QBFQyk202lBFomSR0xDbOZh4QtMsP\n\twiKg==","X-Gm-Message-State":"AHPjjUi7+A230WOd23xQWPXhsRnDcEs9vvJuwiwyWDl0qylzyTb4gOjd\n\t1/uBNK0xDoBAdYQUXAY=","X-Google-Smtp-Source":"AOwi7QA17i7KnuJpybxOCI/mbzuF4XLKstm9kf1r1KU1NQjcRsNLe4jDUVwhtH7ZK1lxzd2hmx7VGg==","X-Received":"by 10.200.49.87 with SMTP id h23mr17610519qtb.13.1505168022801; \n\tMon, 11 Sep 2017 15:13:42 -0700 (PDT)","To":"Kamil Rytarowski <n54@gmx.com>, Paolo Bonzini <pbonzini@redhat.com>","References":"<20170911213328.9701-1-f4bug@amsat.org>\n\t<20170911213328.9701-6-f4bug@amsat.org>\n\t<aa266e28-853b-4703-8495-8fa862aea106@gmx.com>","From":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>","Message-ID":"<9bdda758-c62c-cb04-15cd-1e93bd1664f7@amsat.org>","Date":"Mon, 11 Sep 2017 19:13:39 -0300","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<aa266e28-853b-4703-8495-8fa862aea106@gmx.com>","Content-Type":"text/plain; charset=utf-8; format=flowed","Content-Language":"en-US","Content-Transfer-Encoding":"8bit","X-detected-operating-system":"by eggs.gnu.org: Genre and OS details not\n\trecognized.","X-Received-From":"2607:f8b0:400d:c0d::243","Subject":"Re: [Qemu-devel] [PATCH v2 5/5] tcg: restrict i386 regs definitions","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Thomas Huth <thuth@redhat.com>,\n\tPeter Crosthwaite <crosthwaite.peter@gmail.com>,\n\tqemu-devel@nongnu.org, Richard Henderson <rth@twiddle.net>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}},{"id":1766612,"web_url":"http://patchwork.ozlabs.org/comment/1766612/","msgid":"<278d8d46-bda2-ea89-dd5c-3221c37ce478@gmx.com>","list_archive_url":null,"date":"2017-09-11T22:37:35","subject":"Re: [Qemu-devel] [PATCH v2 5/5] tcg: restrict i386 regs definitions","submitter":{"id":11273,"url":"http://patchwork.ozlabs.org/api/people/11273/","name":"Kamil Rytarowski","email":"n54@gmx.com"},"content":"On 12.09.2017 00:13, Philippe Mathieu-Daudé wrote:\n> On 09/11/2017 06:44 PM, Kamil Rytarowski wrote:\n>> On 11.09.2017 23:33, Philippe Mathieu-Daudé wrote:\n>>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>\n>>> ---\n>>> cleaning while here :)\n>>>\n>>>   accel/tcg/user-exec.c | 18 +++++++++---------\n>>>   1 file changed, 9 insertions(+), 9 deletions(-)\n>>>\n>>> diff --git a/accel/tcg/user-exec.c b/accel/tcg/user-exec.c\n>>> index 2a975eaf69..484a3f5f8f 100644\n>>> --- a/accel/tcg/user-exec.c\n>>> +++ b/accel/tcg/user-exec.c\n>>> @@ -25,15 +25,6 @@\n>>>   #include \"exec/cpu_ldst.h\"\n>>>   #include \"translate-all.h\"\n>>>   -#undef EAX\n>>> -#undef ECX\n>>> -#undef EDX\n>>> -#undef EBX\n>>> -#undef ESP\n>>> -#undef EBP\n>>> -#undef ESI\n>>> -#undef EDI\n>>> -#undef EIP\n>>>   #ifdef __linux__\n>>>   #include <sys/ucontext.h>\n>>>   #endif\n>>> @@ -131,6 +122,15 @@ static inline int handle_cpu_signal(uintptr_t\n>>> pc, unsigned long address,\n>>>   }\n>>>     #if defined(__i386__)\n>>> +#undef EAX\n>>> +#undef ECX\n>>> +#undef EDX\n>>> +#undef EBX\n>>> +#undef ESP\n>>> +#undef EBP\n>>> +#undef ESI\n>>> +#undef EDI\n>>> +#undef EIP\n>>>     #if defined(__NetBSD__)\n>>>   #include <ucontext.h>\n>>>\n>>\n>> Why to move under i386?\n> \n> I tracked the origin of these #defines in op-i386.c (7bfdb6d18c7b) and\n> thought the Exx naming was for i386 while the x86_64 uses the Rxx naming\n> (RAX .. RIP) so you'd only have them on i386 arch.\n> However it seems I didn't realize you can access x86_64 registers in\n> 32-bit mode via the EAX .. EIP naming, as you see I'm not confident with\n> this CISC arch :S\n> \n> So I guess it's best to ignore this patch?\n> \n\nA typical 64-bit x86_64 OS can run 32-bit programs and reuse x86 32-bit\nheaders.\n\n>>\n>> SmartOS pollutes namespace with these symbols on x86_64.\n>>\n> \n> you should provide some VM :P\n> \n\nHope to see it too.\n\n> I plan to test this project soon:\n> https://www.packer.io/docs/builders/qemu.html\n> \n> Regards,\n> \n> Phil.","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xrjlL74r5z9s7B\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 12 Sep 2017 08:48:45 +1000 (AEST)","from localhost ([::1]:60939 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1drXVS-0004ii-98\n\tfor incoming@patchwork.ozlabs.org; Mon, 11 Sep 2017 18:48:42 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:37228)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from <n54@gmx.com>)\n\tid 1drXV3-0004iH-VT\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 18:48:19 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <n54@gmx.com>) id 1drXV0-0006ld-S7\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 18:48:18 -0400","from mout.gmx.net ([212.227.17.22]:54952)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <n54@gmx.com>) id 1drXV0-0006lR-Gf\n\tfor qemu-devel@nongnu.org; Mon, 11 Sep 2017 18:48:14 -0400","from [192.168.1.4] ([185.58.161.191]) by mail.gmx.com (mrgmx102\n\t[212.227.17.174]) with ESMTPSA (Nemesis) id 0Lr46Z-1dDEeu1Vbf-00ee2N; \n\tTue, 12 Sep 2017 00:47:55 +0200"],"To":"=?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>,\n\tPaolo Bonzini <pbonzini@redhat.com>","References":"<20170911213328.9701-1-f4bug@amsat.org>\n\t<20170911213328.9701-6-f4bug@amsat.org>\n\t<aa266e28-853b-4703-8495-8fa862aea106@gmx.com>\n\t<9bdda758-c62c-cb04-15cd-1e93bd1664f7@amsat.org>","From":"Kamil Rytarowski <n54@gmx.com>","Message-ID":"<278d8d46-bda2-ea89-dd5c-3221c37ce478@gmx.com>","Date":"Tue, 12 Sep 2017 00:37:35 +0200","User-Agent":"Mozilla/5.0 (X11; NetBSD amd64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<9bdda758-c62c-cb04-15cd-1e93bd1664f7@amsat.org>","Content-Type":"multipart/signed; micalg=pgp-sha256;\n\tprotocol=\"application/pgp-signature\";\n\tboundary=\"1cDvlqtbH4jRfFQepCoKxWpnJDM1eeEeR\"","X-Provags-ID":"V03:K0:g68BBrLtfI6mQkSo/kGHktI7zFVUuWMTA7CLgdmJlG2N7FhOfvF\n\tlVKIKQTy9mBRTq7sdKJ+FwrYqzoK0qIsSf6NsU9Ul7JqeO12Z0te5PH5y717Bj36zIVMoae\n\twZdf3wWKw1ui9+MEjagQ3ZoHEXm3nzfUwBQzTag6yKWCVPhr5mQ3Pb7GtE9R5t3agMIbGqd\n\tyOdipyIcifjgsJauGzyfA==","X-UI-Out-Filterresults":"notjunk:1; V01:K0:sc2IjS+tKPA=:CQjs0k8q0JwavaPQ1Jz6D1\n\txIz1uT0JthJHf7d+asmGICoZ1EYuB97YILyEqy5z0sFiJV7misMFQ4G3F2VXWo+G0PaFC+dme\n\tvptC7HfyPzEnnFxMvsBuSaGHrDk+5X/HoGPX461eRHGV0umQdArWDXdckxeGR2aTFbXxxhO3E\n\taPpKXNPHhczNg0aa7XH/xdnL5wpdHmqT3twvBV/SteNhagJTkgKLsgNtbL1IYhGMHQCqdVkOy\n\tzTXQQ4WdHe2UdT0C1uJZZgz9an84SFXbF1qtI+M1EA7H36vgdT+DWXWxVQ9h8KQcxTc9tUXya\n\t2SmUX3BZT+yDHZDFpvL9j9ma1sXYjGL/Zq/pAxdrj0GX4TdInCAiN8m7vcrvj5RRwzZmhIjiL\n\tCsk/rvzOkDozEUZxZUiPYgP0M9QcsuoxJ1HmykfiS5/nMdyLCheiaLKjc1tMqaJJhHhkiMWsb\n\tTeE8Ku3zWtNbgU4frXpj5J5ZvU75IPhkn728lwJ7DnM+w1IUHqeh72NTHrwYZIOsMcNWiRR2e\n\tKUidYl5+pemeA9aRLWeEh4lUtYguWMaft7ZpfbEq2kLOggzsFsPm8cjOuHLTqT+B6cAEeKwPg\n\tTLN00wQodpbIlIO6huy3+ToqCpjecioZVyPysIi49J9eOV/2SEDKiHWzTP+wFESjLc8kNvKi6\n\tkW+M8YHVIAl62xNr4I7R50jPmI5qbeGbX7sZdZckrSc5/BzWxk4bSQ/GHIuPJQsCUzszcB7Op\n\te0X4WiBx770tNwaSzpdUWmy9EuX4FwerUwPqWEZqOPNEQC25c83HHElh4uqcce3vykvwXR9Zf\n\tSv42hB5WYhIr2GvL1M6qatLoPlMlg==","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]","X-Received-From":"212.227.17.22","X-Content-Filtered-By":"Mailman/MimeDel 2.1.21","Subject":"Re: [Qemu-devel] [PATCH v2 5/5] tcg: restrict i386 regs definitions","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"Thomas Huth <thuth@redhat.com>,\n\tPeter Crosthwaite <crosthwaite.peter@gmail.com>,\n\tqemu-devel@nongnu.org, Richard Henderson <rth@twiddle.net>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}}]