provide ioctl handlers for KVM_SET_TSS_ADDR.
part of bugzilla 339424


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14568 a5019735-40e9-0310-863c-91ae7b9d1cf9
implement KVM_KVMCLOCK_CTRL. Interestingly, the kernel does not check 
the parameter. QEMU does pass 0 nevertheless as parameter.

bugzilla:  [Bug 339424] Full support of KVM ioctl


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14569 a5019735-40e9-0310-863c-91ae7b9d1cf9
mips: extend mips_features with a check for FPU

Extend mips_features with "hard-float" query to which mips_features will
respond whether or not the platform is meant to have a floating point unit.
The query is not a runtime check, but a built-time check.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14570 a5019735-40e9-0310-863c-91ae7b9d1cf9
mips64: run FPU tests only when FPU is available

Check whether the target platform is meant to have an FPU before executing
tests that make use of a floating-point unit.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14571 a5019735-40e9-0310-863c-91ae7b9d1cf9
mips64: enable soft-float build of the tests

Cavium toolchain defaults to soft-float, so it is important to enable full
build of the test suite to work in that case as well.

This boils down to protecting FPU-specific code segments with

#if defined(__mips_hard_float)
#endif


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14572 a5019735-40e9-0310-863c-91ae7b9d1cf9
Remove unneeded header file which does not exist on Darwin.
Disable test for darwin as pthread_setname_np is not implemented.
But setting and observing the threadname is what this test is all about.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14573 a5019735-40e9-0310-863c-91ae7b9d1cf9
Merge revisions 14203,14574,14575 from the BUF_REMOVAL
branch to trunk.
This change eliminates the fixed size buffers in VG_(basename)
and VG_(dirname).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14576 a5019735-40e9-0310-863c-91ae7b9d1cf9
Merge 14206,14207,14261,14577,14578 from BUF_REMOVAL branch to trunk.
This changes VG_(record_startup_wd) to dynamically allocate a large
enough buffer for the directory name. As the dynamic memory manager has
started up a while ago, this is quite safe. Also rewrite VG_(get_startup_wd)
to simply return the directory name. No more messing with copying it
around. Adapt call sites.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14579 a5019735-40e9-0310-863c-91ae7b9d1cf9
Merge r14208 from BUF_REMOVAL branch to trunk.
In function read_dot_valgrindrc use a large enough buffer 
allocated on the stack. 
Also assert that the passed in directory is not NULL. This is 
true at all call sites. The old code would have attempted to read
/.valgrindrc for dir == NULL and I don't think we want that.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14580 a5019735-40e9-0310-863c-91ae7b9d1cf9
Merge r14209 from BUF_REMOVAL branch to trunk.
In VG_(redir_notify_new_DebugInfo) use a large enough buffer
allocated on the stack.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14581 a5019735-40e9-0310-863c-91ae7b9d1cf9
Merge r14251 from BUF_REMOVAL branch to trunk.
This change eliminates the fixed size buffer when reading /proc/version.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14582 a5019735-40e9-0310-863c-91ae7b9d1cf9
Merge r14229 from the BUF_REMOVAL branch to trunk.
Function MC_(snprintf_delta) requires a buffer of size 31 or larger to
avoid overflow.Add an assert, change and document the buffer size and
fix all call sites. Remove magic constants along the way.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14583 a5019735-40e9-0310-863c-91ae7b9d1cf9
Fix VG_(snprintf) missing arg in inner setup


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14584 a5019735-40e9-0310-863c-91ae7b9d1cf9
drd/tests/std_thread2.supp: Add a suppression pattern

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14585 a5019735-40e9-0310-863c-91ae7b9d1cf9
Merge revisions 14212 and 14586 from the BUF_REMOVAL branch to trunk.
The change eliminates the use of fixed size buffers for path names.
There was a comment in the code that dynamic memory allocation could
not be used. But that is no longer true. 
Clean up #includes.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14587 a5019735-40e9-0310-863c-91ae7b9d1cf9
Merge r14125 from the BUF_REMOVAL branch to trunk.
This change eliminates the fixed size buffer in VG_(assert_fail).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14588 a5019735-40e9-0310-863c-91ae7b9d1cf9
Add entry to NEWS file for fixed bugzilla 339182 


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14589 a5019735-40e9-0310-863c-91ae7b9d1cf9
Add entry to NEWS file for fixed bugzilla 339433


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14590 a5019735-40e9-0310-863c-91ae7b9d1cf9
Update.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14592 a5019735-40e9-0310-863c-91ae7b9d1cf9
Merge revisions 14216,14591,14593 from the BUF_REMOVAL branch to trunk.
Chang the semantics of VG_(getgroups) to support querying the number
of supplementary group IDs which simplifies obtaining them and gets
rid of fixed size buffers.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14594 a5019735-40e9-0310-863c-91ae7b9d1cf9