It is better than a anonymous "guest-xxx".
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
term_init();
if (!guest_name) {
- sprintf(default_name, "guest-%u", getpid());
- guest_name = default_name;
+ if (custom_rootfs) {
+ guest_name = custom_rootfs_name;
+ } else {
+ sprintf(default_name, "guest-%u", getpid());
+ guest_name = default_name;
+ }
}
kvm = kvm__init(dev, hugetlbfs_path, ram_size, guest_name);