We had many copies of the VHPI marshalling/unmarshalling code. Signed-off-by: Anton Blanchard <anton@linux.ibm.com>