mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-31 12:07:31 +00:00 
			
		
		
		
	 9c0928045c
			
		
	
	
		9c0928045c
		
	
	
	
	
		
			
			Leading underscores are ill-advised because such identifiers are reserved. Trailing underscores are merely ugly. Strip both. Our header guards commonly end in _H. Normalize the exceptions. Macros should be ALL_CAPS. Normalize the exception. Done with scripts/clean-header-guards.pl. include/hw/xen/interface/ and tools/virtiofsd/ left alone, because these were imported from Xen and libfuse respectively. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20220506134911.2856099-3-armbru@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.1 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;
 | |
|     int32_t bootindex;
 | |
| 
 | |
|     /*< public >*/
 | |
| };
 | |
| 
 | |
| #endif /* QEMU_VHOST_USER_FS_H */
 |