The initial vhost-user connection sets the features to be negotiated with the driver. Renegotiation isn't possible without device reset. To handle reconnection of vhost-user backend, ensure the same set of features are provided, and reuse already acked features. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Tested-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Victor Kaplansky <victork@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
		
			
				
	
	
		
			19 lines
		
	
	
		
			426 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			426 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * vhost-user.h
 | 
						|
 *
 | 
						|
 * Copyright (c) 2013 Virtual Open Systems Sarl.
 | 
						|
 *
 | 
						|
 * This work is licensed under the terms of the GNU GPL, version 2 or later.
 | 
						|
 * See the COPYING file in the top-level directory.
 | 
						|
 *
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef VHOST_USER_H_
 | 
						|
#define VHOST_USER_H_
 | 
						|
 | 
						|
struct vhost_net;
 | 
						|
struct vhost_net *vhost_user_get_vhost_net(NetClientState *nc);
 | 
						|
uint64_t vhost_user_get_acked_features(NetClientState *nc);
 | 
						|
 | 
						|
#endif /* VHOST_USER_H_ */
 |