[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH v3 1/3] xen/flask: Drop the gen-policy.py script
- To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
- Date: Mon, 9 Dec 2019 13:00:23 -0500
- Cc: Juergen Gross <jgross@xxxxxxxx>
- Delivery-date: Mon, 09 Dec 2019 18:00:56 +0000
- Ironport-phdr: 9a23:D8+0RhReHD98gyanH9FSrlq3/Npsv+yvbD5Q0YIujvd0So/mwa67ZBKEt8tkgFKBZ4jH8fUM07OQ7/m7HzVRud3Y6C9KWacPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3wOgVvO+v6BJPZgdip2OCu4Z3TZBhDiCagbb9oIxi6sAvcutMLjYZmNqo9xQbFrmdKdu9L2W5mOFWfkgrm6Myt5pBj6SNQu/wg985ET6r3erkzQKJbAjo7LW07/dXnuhbfQwSB4HscSXgWnQFTAwfZ9hH6X4z+vTX8u+FgxSSVJ8z2TbQzWTS/86dmTQLjhSkbOzIl9mzcl9d9h7xHrh2/uxN/wpbUYICLO/p4YqPdZs4RSW5YUspMSyBNHoawYo0BAOobOeZTspfzqV0AoxCjAQWgHe3ixztNinLwwKY00fkuERve0QI9AdwOvnTarNL2OqkcX++6w6vHwinMYf5NxTfw6pLFfgw9rfyCX799d9fax0k1FwPCi1WdsYLrMCmT1uQMrWeb6/drW+yxhGU6qg9xuCKgyd0iioLUgY8a11/E+jhnz4Y6P923UlV2YcKkEZRMtyGaMJF6QsU5Q25yoio6xboGuYCicSUM1Z8pyRnfa/mdfIiJ5BLuTP2RIStli3JkfrKznQyy/la6xeLhUMS/zVVErjJdn9XRuX0A2Abf58iaRvdn4Eus1iiD2xrO5uxCPEs6j7DUK4Q7zb41jpcTtEPDETLol0jul6+Wc1kk+vCv6+T6frXqvp+cOJFwigH5KqkuhtawAf45MggTRGiX4+W81Lvt/U3+W7VFkOE5nrPFsJHaOcsbpqm5DxVT0ok/8BawEy2q0NEZnXkDNF5FeRSHgJb1O1zWPfz1Aviyj06snTt23fzKILLsDovXInTeiLvheKxy609YyAo919Bf4JdUB6kcL/L8R0D+qtPYDgUjPAGv3+bmCMly1oMZWW6VBK+ZK7ndvUWH5uIoPemAfJUVtyrlK/g5+/7uimc0lkUbfaa0x5sYdn65Eu56LEWeZnrsmskOEX0EswclUOPqiUGCUSRSZ3e9Ra4z+jY7CIe+B4fZWo+tmKCB3Du8HpBOaWFJFFaMHW71eIqaRfcDdiaSL9RlkjwFTrihV5Qh2QuhtQDkzbpnNvDU+ioatZ39yNd1+/fflRYo9Tx7F86dyX2CT3lonmMUQD87xKJ/oUNnyleEyqh4mOdVFcdO5/NSTAg2L4LTz+t/C4O6ZgWUV9GFUlu5Cv6hBik8VJplytkCeUtiXd6liQjOxXGCCL4Jjb2bQpcz9/SYl0j8IYNxxmjL0OF1n1QgB8dCK2Cirqp+7BTIQZ7ElV2DkKSnfrha2zTCojSt122L6W1RVg99Ve3pUDgwfELfo5yt6kzOQrC0AJw7IwBBzoiEMaIMZdr32wYVDMz/McjTNjri01y7AgyFk/bVN9vn
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 12/7/19 4:16 PM, Andrew Cooper wrote:
The script is Python 2 specific, and fails with string/binary issues with
Python 3:
Traceback (most recent call last):
File "gen-policy.py", line 14, in <module>
for char in sys.stdin.read():
File "/usr/lib/python3.5/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8c in position 0:
invalid start byte
Fixing the script to be compatible isn't hard, but using python here is
wasteful. Drop the script entirely, and write a short flask-policy.S instead.
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Acked-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
With either .align or .p2align as appropriate for more assemblers.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|