vm.go
func (v *VM) Vcpus() (uint8, error) {
	var err C.VixError = C.VIX_OK
	vcpus := C.VIX_PROPERTY_NONE

	err = C.get_property(v.handle,
		C.VIX_PROPERTY_VM_NUM_VCPUS,
		unsafe.Pointer(&vcpus))

	if C.VIX_OK != err {
		return 0, &Error{
			Operation: "vm.Vcpus",
			Code:      int(err & 0xFFFF),
			Text:      C.GoString(C.Vix_GetErrorText(err, nil)),
		}
	}

	return uint8(vcpus), nil
}
func (v *VM) Vcpus() (uint8, error) {
	var err C.VixError = C.VIX_OK
	vcpus := C.VIX_PROPERTY_NONE

	err = C.get_property(v.handle,
		C.VIX_PROPERTY_VM_NUM_VCPUS,
		unsafe.Pointer(&vcpus))

	if C.VIX_OK != err {
		return 0, &Error{
			Operation: "vm.Vcpus",
			Code:      int(err & 0xFFFF),
			Text:      C.GoString(C.Vix_GetErrorText(err, nil)),
		}
	}

	return uint8(vcpus), nil
}
// Vcpus returns number of virtual CPUs configured for the virtual machine.