[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC PATCH V3 08/12] tools/tests: Clean-up tools/tests/xen-access
On Thu, 2015-01-29 at 22:46 +0100, Tamas K Lengyel wrote: > The spin-lock implementation in the xen-access test program is implemented > in a fashion that is actually incomplete. The x86 assembly that guarantees > that > the lock is held by only one thread lacks the "lock;" instruction. > > However, the spin-lock is not actually necessary in xen-access as it is not > multithreaded. The presence of the faulty implementation of the lock in a non- > mulithreaded environment is unnecessarily complicated for developers who are typo: "multithreaded" > trying to follow this code as a guide in implementing their own applications. > Thus, removing it from the code improves the clarity on the behavior of the > system. > > Also converting functions that always return 0 to return to void, and making > the teardown function actually return an error code on error. > > Signed-off-by: Tamas K Lengyel <tamas.lengyel@xxxxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |