The UUID is unique even across multiple hosts, thus it is better than a VM name even if it is less user-friendly. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
		
			
				
	
	
		
			13 lines
		
	
	
		
			226 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			226 B
		
	
	
	
		
			C
		
	
	
	
	
	
#include "qemu-common.h"
 | 
						|
#include "sysemu/sysemu.h"
 | 
						|
#include "qmp-commands.h"
 | 
						|
 | 
						|
UuidInfo *qmp_query_uuid(Error **errp)
 | 
						|
{
 | 
						|
    UuidInfo *info = g_malloc0(sizeof(*info));
 | 
						|
 | 
						|
    info->UUID = g_strdup(UUID_NONE);
 | 
						|
    return info;
 | 
						|
}
 | 
						|
 |