/*********************************************************
- * Copyright (C) 2008-2017,2020 VMware, Inc. All rights reserved.
+ * Copyright (C) 2008-2017,2020-2021 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
UNITY_CAP_CARET_POSITION = 33, // supports sending caret position updates
CAP_GUESTSTORE_UPGRADE = 34, // supports tools upgrade from GuestStore
CAP_DEVICE_HELPER = 35, // supports tools device helper for Windows guests
+ CAP_VMBACKUP_NVME = 36, // supports NVMe for vmbackup
} GuestCapabilities;
typedef struct {
*/
{ CAP_GUESTSTORE_UPGRADE, NULL, NULL },
{ CAP_DEVICE_HELPER, NULL, NULL },
+ { CAP_VMBACKUP_NVME, NULL, NULL },
};
// clang-format on
/*********************************************************
- * Copyright (C) 2007-2020 VMware, Inc. All rights reserved.
+ * Copyright (C) 2007-2021 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
}
+/*
+ *******************************************************************************
+ * VmBackupCapabilities -- */ /**
+ *
+ * Sends the vmbackup capability to the VMX.
+ *
+ * @param[in] src The source object.
+ * @param[in] ctx The app context.
+ * @param[in] set Whether setting or unsetting the capability.
+ * @param[in] data Unused.
+ *
+ * @return An array with the capabilities to set.
+ *
+ *******************************************************************************
+ */
+
+static GArray *
+VmBackupCapabilities(gpointer src,
+ ToolsAppCtx *ctx,
+ gboolean set,
+ gpointer data)
+{
+ ToolsAppCapability caps[] = {
+ { TOOLS_CAP_NEW, NULL, CAP_VMBACKUP_NVME, },
+ };
+
+ caps[0].value = set ? 1 : 0;
+
+ return VMTools_WrapArray(caps, sizeof *caps, ARRAYSIZE(caps));
+}
+
+
/**
* Plugin entry point. Initializes internal plugin state.
*
{ VMBACKUP_PROTOCOL_SNAPSHOT_DONE, VmBackupSnapshotDone, NULL, NULL, NULL, 0 }
};
ToolsPluginSignalCb sigs[] = {
+ { TOOLS_CORE_SIG_CAPABILITIES, VmBackupCapabilities, NULL },
{ TOOLS_CORE_SIG_DUMP_STATE, VmBackupDumpState, NULL },
{ TOOLS_CORE_SIG_RESET, VmBackupReset, NULL },
{ TOOLS_CORE_SIG_SHUTDOWN, VmBackupShutdown, NULL },