Skip to content

Commit f55f10b

Browse files
committed
Added vcpu-map to swap-with option.
1 parent a119916 commit f55f10b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

include/fast-lib/message/migfra/task.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ struct Swap_with :
162162

163163
std::string vm_name;
164164
Optional<std::string> pscom_hook_procs;
165+
Optional<std::vector<std::vector<unsigned int>>> vcpu_map;
165166
};
166167

167168

src/message/migfra/task.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ void Stop::load(const YAML::Node &node)
304304
//
305305

306306
Swap_with::Swap_with() :
307-
pscom_hook_procs("pscom-hook-procs")
307+
pscom_hook_procs("pscom-hook-procs"),
308+
vcpu_map("vcpu-map")
308309
{
309310
}
310311

@@ -313,13 +314,15 @@ YAML::Node Swap_with::emit() const
313314
YAML::Node node;
314315
node["vm-name"] = vm_name;
315316
merge_node(node, pscom_hook_procs.emit());
317+
merge_node(node, vcpu_map.emit());
316318
return node;
317319
}
318320

319321
void Swap_with::load(const YAML::Node &node)
320322
{
321323
fast::load(vm_name, node["vm-name"]);
322324
pscom_hook_procs.load(node);
325+
vcpu_map.load(node);
323326
}
324327

325328
//

0 commit comments

Comments
 (0)