]> git.proxmox.com Git - pve-docs.git/blobdiff - gen-cpu-models.conf.5-opts.pl
Add man-page and notes about custom CPU models
[pve-docs.git] / gen-cpu-models.conf.5-opts.pl
diff --git a/gen-cpu-models.conf.5-opts.pl b/gen-cpu-models.conf.5-opts.pl
new file mode 100755 (executable)
index 0000000..7c35d69
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/perl
+
+use lib '.';
+use strict;
+use warnings;
+use PVE::RESTHandler;
+use PVE::QemuServer::CPUConfig;
+
+my $prop = PVE::QemuServer::CPUConfig::add_cpu_json_properties({});
+
+# cputype is given as section header and explained seperately
+delete $prop->{cputype};
+
+print PVE::RESTHandler::dump_properties($prop);