mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-30 19:15:42 +00:00 
			
		
		
		
	 8063396bf3
			
		
	
	
		8063396bf3
		
	
	
	
	
		
			
			This converts existing DECLARE_INSTANCE_CHECKER usage to OBJECT_DECLARE_SIMPLE_TYPE when possible. $ ./scripts/codeconverter/converter.py -i \ --pattern=AddObjectDeclareSimpleType $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Paul Durrant <paul@xen.org> Message-Id: <20200916182519.415636-6-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Vhost-user filesystem virtio device
 | |
|  *
 | |
|  * Copyright 2018-2019 Red Hat, Inc.
 | |
|  *
 | |
|  * Authors:
 | |
|  *  Stefan Hajnoczi <stefanha@redhat.com>
 | |
|  *
 | |
|  * This work is licensed under the terms of the GNU GPL, version 2 or
 | |
|  * (at your option) any later version.  See the COPYING file in the
 | |
|  * top-level directory.
 | |
|  */
 | |
| 
 | |
| #ifndef _QEMU_VHOST_USER_FS_H
 | |
| #define _QEMU_VHOST_USER_FS_H
 | |
| 
 | |
| #include "hw/virtio/virtio.h"
 | |
| #include "hw/virtio/vhost.h"
 | |
| #include "hw/virtio/vhost-user.h"
 | |
| #include "chardev/char-fe.h"
 | |
| #include "qom/object.h"
 | |
| 
 | |
| #define TYPE_VHOST_USER_FS "vhost-user-fs-device"
 | |
| OBJECT_DECLARE_SIMPLE_TYPE(VHostUserFS, VHOST_USER_FS)
 | |
| 
 | |
| typedef struct {
 | |
|     CharBackend chardev;
 | |
|     char *tag;
 | |
|     uint16_t num_request_queues;
 | |
|     uint16_t queue_size;
 | |
| } VHostUserFSConf;
 | |
| 
 | |
| struct VHostUserFS {
 | |
|     /*< private >*/
 | |
|     VirtIODevice parent;
 | |
|     VHostUserFSConf conf;
 | |
|     struct vhost_virtqueue *vhost_vqs;
 | |
|     struct vhost_dev vhost_dev;
 | |
|     VhostUserState vhost_user;
 | |
|     VirtQueue **req_vqs;
 | |
|     VirtQueue *hiprio_vq;
 | |
| 
 | |
|     /*< public >*/
 | |
| };
 | |
| 
 | |
| #endif /* _QEMU_VHOST_USER_FS_H */
 |