Marc-André Lureau
		
	
	
		648abbfbaa
		
	
	
	
	memfd: fix vhost-user-test on non-memfd capable host
		
			
			On RHEL7, memfd is not supported, and vhost-user-test fails:
TEST: tests/vhost-user-test... (pid=10248)
  /x86_64/vhost-user/migrate:
  qemu-system-x86_64: -object memory-backend-memfd,id=mem,size=2M,: failed to create memfd
FAIL
There is a qemu_memfd_check() to prevent running memfd path, but it
also checks for fallback implementation. Let's specialize
qemu_memfd_check() to check memfd only, while qemu_memfd_alloc_check()
checks for the qemu_memfd_alloc() API.
Reported-by: Miroslav Rezanina <mrezanin@redhat.com>
Tested-by: Miroslav Rezanina <mrezanin@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180328121804.16203-1-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
		
	
 
		2018-04-09 12:57:06 +02:00
	 
	
	
		 ..
	
	
	
		
	
		
			
			
			
			
			
			2017-09-21 23:19:37 +02:00
		 
	
		
	
		
	
		
			
			
			
			
			
			2017-09-22 14:11:25 +02:00
		 
	
		
			
			
			
			
			
			2017-05-12 12:36:02 +02:00
		 
	
		
			
			
			
			
			
			2018-02-21 10:20:19 +00:00
		 
	
		
	
		
			
			
			
			
			
			2018-03-19 10:00:14 -05:00
		 
	
		
			
			
			
			
			
			2018-02-09 13:52:16 +01:00
		 
	
		
			
			
			
			
			
			2018-03-27 13:05:28 +01:00
		 
	
		
			
			
			
			
			
			2018-02-08 09:22:03 +08:00
		 
	
		
			
			
			
			
			
			2017-07-24 12:42:55 +01:00
		 
	
		
	
		
			
			
			
			
			
			2018-03-13 18:06:05 +00:00
		 
	
		
	
		
			
			
			
			
			
			2017-07-13 13:49:54 +02:00
		 
	
		
			
			
			
			
			
			2018-01-24 19:20:19 +02:00
		 
	
		
	
		
	
		
	
		
			
			
			
			
			
			2017-10-16 20:57:13 +03:00
		 
	
		
			
			
			
			
			
			2017-12-18 10:54:13 -05:00
		 
	
		
	
		
			
			
			
			
			
			2018-01-18 21:52:38 +02:00
		 
	
		
	
		
			
			
			
			
			
			2016-10-26 08:29:01 -07:00
		 
	
		
			
			
			
			
			
			2017-09-05 22:34:40 +02:00
		 
	
		
			
			
			
			
			
			2016-09-27 17:54:21 +08:00
		 
	
		
			
			
			
			
			
			2018-03-06 14:01:27 +01:00
		 
	
		
			
			
			
			
			
			2018-03-12 11:10:20 +00:00
		 
	
		
			
			
			
			
			
			2018-03-12 11:10:20 +00:00
		 
	
		
			
			
			
			
			
			2017-07-04 14:39:28 +02:00
		 
	
		
			
			
			
			
			
			2018-04-09 12:57:06 +02:00
		 
	
		
			
			
			
			
			
			2017-03-03 11:30:59 +11:00
		 
	
		
			
			
			
			
			
			2018-03-12 11:18:26 +01:00
		 
	
		
	
		
	
		
			
			
			
			
			
			2018-03-09 15:17:47 +01:00
		 
	
		
			
			
			
			
			
			2018-02-19 13:03:24 +02:00
		 
	
		
	
		
			
			
			
			
			
			2018-02-05 18:09:45 +01:00
		 
	
		
	
		
			
			
			
			
			
			2017-12-18 17:07:02 +03:00
		 
	
		
			
			
			
			
			
			2018-03-27 13:05:28 +01:00
		 
	
		
	
		
			
			
			
			
			
			2018-02-15 09:39:49 +00:00
		 
	
		
	
		
			
			
			
			
			
			2018-03-12 16:12:47 +01:00
		 
	
		
			
			
			
			
			
			2018-01-16 14:54:50 +01:00
		 
	
		
			
			
			
			
			
			2016-10-04 10:00:26 +02:00
		 
	
		
			
			
			
			
			
			2018-03-13 18:06:06 +00:00
		 
	
		
			
			
			
			
			
			2017-06-16 07:55:00 +08:00
		 
	
		
			
			
			
			
			
			2018-03-12 16:12:47 +01:00
		 
	
		
			
			
			
			
			
			2017-03-19 11:12:12 +01:00
		 
	
		
			
			
			
			
			
			2017-11-14 14:31:33 +01:00
		 
	
		
			
			
			
			
			
			2017-07-04 14:39:28 +02:00
		 
	
		
			
			
			
			
			
			2018-02-08 09:22:03 +08:00
		 
	
		
			
			
			
			
			
			2017-09-06 10:12:02 +02:00
		 
	
		
			
			
			
			
			
			2018-03-02 13:45:50 -06:00
		 
	
		
	
		
			
			
			
			
			
			2018-03-12 16:12:50 +01:00
		 
	
		
			
			
			
			
			
			2018-02-09 13:52:15 +01:00
		 
	
		
	
		
			
			
			
			
			
			2016-09-15 15:32:22 +03:00
		 
	
		
			
			
			
			
			
			2017-12-20 22:01:24 +08:00
		 
	
		
			
			
			
			
			
			2018-02-08 09:22:03 +08:00
		 
	
		
			
			
			
			
			
			2017-01-24 23:26:52 +03:00