New API: set-smp, get-smp

These calls allow you to change the number of virtual CPUs assigned to
the appliance.

This also adds a --smp option to virt-rescue.
This commit is contained in:
Richard W.M. Jones
2011-09-28 14:39:31 +01:00
parent 8403f5a9d8
commit 04fbcc63eb
7 changed files with 66 additions and 0 deletions

View File

@@ -206,6 +206,7 @@ main (int argc, char *argv[])
printf ("guestfs_get_recovery_proc: %d\n",
guestfs_get_recovery_proc (g));
printf ("guestfs_get_selinux: %d\n", guestfs_get_selinux (g));
printf ("guestfs_get_smp: %d\n", guestfs_get_smp (g));
printf ("guestfs_get_trace: %d\n", guestfs_get_trace (g));
printf ("guestfs_get_verbose: %d\n", guestfs_get_verbose (g));