blob: 0133d8a12ccd468514a72fdf8eff64aa7d69551d [file] [log] [blame]
Rusty Russellec3d41c2007-10-22 11:03:36 +10001#ifndef _LINUX_VIRTIO_CONFIG_H
2#define _LINUX_VIRTIO_CONFIG_H
Rusty Russell674bfc22008-07-25 12:06:03 -05003
Michael S. Tsirkind2a7ddd2009-06-12 22:16:36 -06004#include <linux/err.h>
Paul Gortmaker187f1882011-11-23 20:12:59 -05005#include <linux/bug.h>
Rusty Russell72e61eb2008-05-02 21:50:49 -05006#include <linux/virtio.h>
Michael S. Tsirkineef960a2014-10-22 15:35:56 +03007#include <linux/virtio_byteorder.h>
David Howells607ca462012-10-13 10:46:48 +01008#include <uapi/linux/virtio_config.h>
Rusty Russellec3d41c2007-10-22 11:03:36 +10009
Christoph Hellwigfb5e31d2017-02-05 18:15:22 +010010struct irq_affinity;
11
Rusty Russellec3d41c2007-10-22 11:03:36 +100012/**
13 * virtio_config_ops - operations for configuring a virtio device
Rusty Russella586d4f2008-02-04 23:49:56 -050014 * @get: read the value of a configuration field
Rusty Russellec3d41c2007-10-22 11:03:36 +100015 * vdev: the virtio_device
Rusty Russella586d4f2008-02-04 23:49:56 -050016 * offset: the offset of the configuration field
Rusty Russellec3d41c2007-10-22 11:03:36 +100017 * buf: the buffer to write the field value into.
Rusty Russella586d4f2008-02-04 23:49:56 -050018 * len: the length of the buffer
Rusty Russella586d4f2008-02-04 23:49:56 -050019 * @set: write the value of a configuration field
Rusty Russellec3d41c2007-10-22 11:03:36 +100020 * vdev: the virtio_device
Rusty Russella586d4f2008-02-04 23:49:56 -050021 * offset: the offset of the configuration field
Rusty Russellec3d41c2007-10-22 11:03:36 +100022 * buf: the buffer to read the field value from.
Rusty Russella586d4f2008-02-04 23:49:56 -050023 * len: the length of the buffer
Michael S. Tsirkind71de9e2014-12-14 16:55:44 +020024 * @generation: config generation counter
25 * vdev: the virtio_device
26 * Returns the config generation counter
Rusty Russellec3d41c2007-10-22 11:03:36 +100027 * @get_status: read the status byte
28 * vdev: the virtio_device
29 * Returns the status byte
30 * @set_status: write the status byte
31 * vdev: the virtio_device
32 * status: the new status byte
Rusty Russell6e5aa7e2008-02-04 23:50:03 -050033 * @reset: reset the device
34 * vdev: the virtio device
35 * After this, status and feature negotiation must be done again
Michael S. Tsirkine6af5782011-11-17 17:41:15 +020036 * Device must not be reset from its vq/config callbacks, or in
37 * parallel with being added/removed.
Michael S. Tsirkind2a7ddd2009-06-12 22:16:36 -060038 * @find_vqs: find virtqueues and instantiate them.
Rusty Russellec3d41c2007-10-22 11:03:36 +100039 * vdev: the virtio_device
Michael S. Tsirkind2a7ddd2009-06-12 22:16:36 -060040 * nvqs: the number of virtqueues to find
41 * vqs: on success, includes new virtqueues
42 * callbacks: array of callbacks, for each virtqueue
Michael S. Tsirkin6457f122012-09-05 21:47:45 +030043 * include a NULL entry for vqs that do not need a callback
Michael S. Tsirkind2a7ddd2009-06-12 22:16:36 -060044 * names: array of virtqueue names (mainly for debugging)
Michael S. Tsirkin6457f122012-09-05 21:47:45 +030045 * include a NULL entry for vqs unused by driver
Michael S. Tsirkind2a7ddd2009-06-12 22:16:36 -060046 * Returns 0 on success or error status
47 * @del_vqs: free virtqueues found by find_vqs().
Rusty Russellc45a6812008-05-02 21:50:50 -050048 * @get_features: get the array of feature bits for this device.
49 * vdev: the virtio_device
50 * Returns the first 32 feature bits (all we currently need).
Rusty Russellc6248962008-07-25 12:06:07 -050051 * @finalize_features: confirm what device features we'll be using.
Rusty Russellc45a6812008-05-02 21:50:50 -050052 * vdev: the virtio_device
Rusty Russellc6248962008-07-25 12:06:07 -050053 * This gives the final feature bits for the device: it can change
54 * the dev->feature bits if it wants.
Michael S. Tsirkin5c609a52014-12-04 20:20:27 +020055 * Returns 0 on success or error status
Rick Jones66846042011-11-14 14:17:08 +000056 * @bus_name: return the bus name associated with the device
57 * vdev: the virtio_device
58 * This returns a pointer to the bus name a la pci_name from which
59 * the caller can then copy.
Jason Wang75a0a522012-08-28 13:54:14 +020060 * @set_vq_affinity: set the affinity for a virtqueue.
Christoph Hellwigbbaba472017-02-05 18:15:23 +010061 * @get_vq_affinity: get the affinity for a virtqueue (optional).
Rusty Russellec3d41c2007-10-22 11:03:36 +100062 */
Michael S. Tsirkind2a7ddd2009-06-12 22:16:36 -060063typedef void vq_callback_t(struct virtqueue *);
Rusty Russell1842f232009-07-30 16:03:46 -060064struct virtio_config_ops {
Rusty Russella586d4f2008-02-04 23:49:56 -050065 void (*get)(struct virtio_device *vdev, unsigned offset,
Rusty Russellec3d41c2007-10-22 11:03:36 +100066 void *buf, unsigned len);
Rusty Russella586d4f2008-02-04 23:49:56 -050067 void (*set)(struct virtio_device *vdev, unsigned offset,
Rusty Russellec3d41c2007-10-22 11:03:36 +100068 const void *buf, unsigned len);
Michael S. Tsirkind71de9e2014-12-14 16:55:44 +020069 u32 (*generation)(struct virtio_device *vdev);
Rusty Russellec3d41c2007-10-22 11:03:36 +100070 u8 (*get_status)(struct virtio_device *vdev);
71 void (*set_status)(struct virtio_device *vdev, u8 status);
Rusty Russell6e5aa7e2008-02-04 23:50:03 -050072 void (*reset)(struct virtio_device *vdev);
Michael S. Tsirkind2a7ddd2009-06-12 22:16:36 -060073 int (*find_vqs)(struct virtio_device *, unsigned nvqs,
Christoph Hellwigfb5e31d2017-02-05 18:15:22 +010074 struct virtqueue *vqs[], vq_callback_t *callbacks[],
Michael S. Tsirkinf94682d2017-03-06 18:32:29 +020075 const char * const names[], const bool *ctx,
76 struct irq_affinity *desc);
Michael S. Tsirkind2a7ddd2009-06-12 22:16:36 -060077 void (*del_vqs)(struct virtio_device *);
Michael S. Tsirkind0254772014-10-07 16:39:43 +020078 u64 (*get_features)(struct virtio_device *vdev);
Michael S. Tsirkin5c609a52014-12-04 20:20:27 +020079 int (*finalize_features)(struct virtio_device *vdev);
Rick Jones66846042011-11-14 14:17:08 +000080 const char *(*bus_name)(struct virtio_device *vdev);
Jason Wang75a0a522012-08-28 13:54:14 +020081 int (*set_vq_affinity)(struct virtqueue *vq, int cpu);
Christoph Hellwigbbaba472017-02-05 18:15:23 +010082 const struct cpumask *(*get_vq_affinity)(struct virtio_device *vdev,
83 int index);
Rusty Russellec3d41c2007-10-22 11:03:36 +100084};
85
Rusty Russellc45a6812008-05-02 21:50:50 -050086/* If driver didn't advertise the feature, it will never appear. */
87void virtio_check_driver_offered_feature(const struct virtio_device *vdev,
88 unsigned int fbit);
89
90/**
Michael S. Tsirkind4024af2014-11-27 21:19:02 +020091 * __virtio_test_bit - helper to test feature bits. For use by transports.
92 * Devices should normally use virtio_has_feature,
93 * which includes more checks.
Rusty Russellc45a6812008-05-02 21:50:50 -050094 * @vdev: the device
95 * @fbit: the feature bit
96 */
Michael S. Tsirkind4024af2014-11-27 21:19:02 +020097static inline bool __virtio_test_bit(const struct virtio_device *vdev,
98 unsigned int fbit)
99{
100 /* Did you forget to fix assumptions on max features? */
101 if (__builtin_constant_p(fbit))
Michael S. Tsirkind0254772014-10-07 16:39:43 +0200102 BUILD_BUG_ON(fbit >= 64);
Michael S. Tsirkind4024af2014-11-27 21:19:02 +0200103 else
Michael S. Tsirkind0254772014-10-07 16:39:43 +0200104 BUG_ON(fbit >= 64);
Michael S. Tsirkind4024af2014-11-27 21:19:02 +0200105
Michael S. Tsirkind0254772014-10-07 16:39:43 +0200106 return vdev->features & BIT_ULL(fbit);
Michael S. Tsirkind4024af2014-11-27 21:19:02 +0200107}
108
109/**
110 * __virtio_set_bit - helper to set feature bits. For use by transports.
111 * @vdev: the device
112 * @fbit: the feature bit
113 */
114static inline void __virtio_set_bit(struct virtio_device *vdev,
115 unsigned int fbit)
116{
117 /* Did you forget to fix assumptions on max features? */
118 if (__builtin_constant_p(fbit))
Michael S. Tsirkind0254772014-10-07 16:39:43 +0200119 BUILD_BUG_ON(fbit >= 64);
Michael S. Tsirkind4024af2014-11-27 21:19:02 +0200120 else
Michael S. Tsirkind0254772014-10-07 16:39:43 +0200121 BUG_ON(fbit >= 64);
Michael S. Tsirkind4024af2014-11-27 21:19:02 +0200122
Michael S. Tsirkind0254772014-10-07 16:39:43 +0200123 vdev->features |= BIT_ULL(fbit);
Michael S. Tsirkind4024af2014-11-27 21:19:02 +0200124}
125
126/**
127 * __virtio_clear_bit - helper to clear feature bits. For use by transports.
128 * @vdev: the device
129 * @fbit: the feature bit
130 */
131static inline void __virtio_clear_bit(struct virtio_device *vdev,
Rusty Russellc45a6812008-05-02 21:50:50 -0500132 unsigned int fbit)
133{
134 /* Did you forget to fix assumptions on max features? */
Rusty Russell1765e3a2011-01-24 14:45:10 -0600135 if (__builtin_constant_p(fbit))
Michael S. Tsirkind0254772014-10-07 16:39:43 +0200136 BUILD_BUG_ON(fbit >= 64);
Rusty Russell1765e3a2011-01-24 14:45:10 -0600137 else
Michael S. Tsirkind0254772014-10-07 16:39:43 +0200138 BUG_ON(fbit >= 64);
Rusty Russellc45a6812008-05-02 21:50:50 -0500139
Michael S. Tsirkind0254772014-10-07 16:39:43 +0200140 vdev->features &= ~BIT_ULL(fbit);
Michael S. Tsirkind4024af2014-11-27 21:19:02 +0200141}
142
143/**
144 * virtio_has_feature - helper to determine if this device has this feature.
145 * @vdev: the device
146 * @fbit: the feature bit
147 */
148static inline bool virtio_has_feature(const struct virtio_device *vdev,
149 unsigned int fbit)
150{
Mark McLoughlinee006b352009-05-11 18:11:44 +0100151 if (fbit < VIRTIO_TRANSPORT_F_START)
152 virtio_check_driver_offered_feature(vdev, fbit);
153
Michael S. Tsirkind4024af2014-11-27 21:19:02 +0200154 return __virtio_test_bit(vdev, fbit);
Rusty Russellc45a6812008-05-02 21:50:50 -0500155}
156
Michael S. Tsirkin1a937692016-04-18 12:58:14 +0300157/**
158 * virtio_has_iommu_quirk - determine whether this device has the iommu quirk
159 * @vdev: the device
160 */
161static inline bool virtio_has_iommu_quirk(const struct virtio_device *vdev)
162{
163 /*
164 * Note the reverse polarity of the quirk feature (compared to most
165 * other features), this is for compatibility with legacy systems.
166 */
167 return !virtio_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM);
168}
169
Michael S. Tsirkind2a7ddd2009-06-12 22:16:36 -0600170static inline
171struct virtqueue *virtio_find_single_vq(struct virtio_device *vdev,
172 vq_callback_t *c, const char *n)
173{
174 vq_callback_t *callbacks[] = { c };
175 const char *names[] = { n };
176 struct virtqueue *vq;
Michael S. Tsirkinf94682d2017-03-06 18:32:29 +0200177 int err = vdev->config->find_vqs(vdev, 1, &vq, callbacks, names, NULL,
178 NULL);
Michael S. Tsirkind2a7ddd2009-06-12 22:16:36 -0600179 if (err < 0)
180 return ERR_PTR(err);
181 return vq;
182}
Rick Jones66846042011-11-14 14:17:08 +0000183
Michael S. Tsirkin9b2bbdb2017-03-06 18:19:39 +0200184static inline
185int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs,
186 struct virtqueue *vqs[], vq_callback_t *callbacks[],
187 const char * const names[],
188 struct irq_affinity *desc)
189{
Michael S. Tsirkinf94682d2017-03-06 18:32:29 +0200190 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, NULL, desc);
191}
192
193static inline
194int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs,
195 struct virtqueue *vqs[], vq_callback_t *callbacks[],
196 const char * const names[], const bool *ctx,
197 struct irq_affinity *desc)
198{
199 return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, ctx,
200 desc);
Michael S. Tsirkin9b2bbdb2017-03-06 18:19:39 +0200201}
202
Michael S. Tsirkin3569db52014-10-15 10:22:30 +1030203/**
204 * virtio_device_ready - enable vq use in probe function
205 * @vdev: the device
206 *
207 * Driver must call this to use vqs in the probe function.
208 *
209 * Note: vqs are enabled automatically after probe returns.
210 */
211static inline
212void virtio_device_ready(struct virtio_device *dev)
213{
214 unsigned status = dev->config->get_status(dev);
215
216 BUG_ON(status & VIRTIO_CONFIG_S_DRIVER_OK);
217 dev->config->set_status(dev, status | VIRTIO_CONFIG_S_DRIVER_OK);
218}
219
Rick Jones66846042011-11-14 14:17:08 +0000220static inline
221const char *virtio_bus_name(struct virtio_device *vdev)
222{
223 if (!vdev->config->bus_name)
224 return "virtio";
225 return vdev->config->bus_name(vdev);
226}
227
Jason Wang75a0a522012-08-28 13:54:14 +0200228/**
229 * virtqueue_set_affinity - setting affinity for a virtqueue
230 * @vq: the virtqueue
231 * @cpu: the cpu no.
232 *
233 * Pay attention the function are best-effort: the affinity hint may not be set
234 * due to config support, irq type and sharing.
235 *
236 */
237static inline
238int virtqueue_set_affinity(struct virtqueue *vq, int cpu)
239{
240 struct virtio_device *vdev = vq->vdev;
241 if (vdev->config->set_vq_affinity)
242 return vdev->config->set_vq_affinity(vq, cpu);
243 return 0;
244}
245
Greg Kurzcf561f02015-04-24 14:24:27 +0200246static inline bool virtio_is_little_endian(struct virtio_device *vdev)
247{
Greg Kurz7d824102015-04-24 14:26:24 +0200248 return virtio_has_feature(vdev, VIRTIO_F_VERSION_1) ||
249 virtio_legacy_is_little_endian();
Greg Kurzcf561f02015-04-24 14:24:27 +0200250}
251
Michael S. Tsirkineef960a2014-10-22 15:35:56 +0300252/* Memory accessors */
253static inline u16 virtio16_to_cpu(struct virtio_device *vdev, __virtio16 val)
254{
Greg Kurzcf561f02015-04-24 14:24:27 +0200255 return __virtio16_to_cpu(virtio_is_little_endian(vdev), val);
Michael S. Tsirkineef960a2014-10-22 15:35:56 +0300256}
257
258static inline __virtio16 cpu_to_virtio16(struct virtio_device *vdev, u16 val)
259{
Greg Kurzcf561f02015-04-24 14:24:27 +0200260 return __cpu_to_virtio16(virtio_is_little_endian(vdev), val);
Michael S. Tsirkineef960a2014-10-22 15:35:56 +0300261}
262
263static inline u32 virtio32_to_cpu(struct virtio_device *vdev, __virtio32 val)
264{
Greg Kurzcf561f02015-04-24 14:24:27 +0200265 return __virtio32_to_cpu(virtio_is_little_endian(vdev), val);
Michael S. Tsirkineef960a2014-10-22 15:35:56 +0300266}
267
268static inline __virtio32 cpu_to_virtio32(struct virtio_device *vdev, u32 val)
269{
Greg Kurzcf561f02015-04-24 14:24:27 +0200270 return __cpu_to_virtio32(virtio_is_little_endian(vdev), val);
Michael S. Tsirkineef960a2014-10-22 15:35:56 +0300271}
272
273static inline u64 virtio64_to_cpu(struct virtio_device *vdev, __virtio64 val)
274{
Greg Kurzcf561f02015-04-24 14:24:27 +0200275 return __virtio64_to_cpu(virtio_is_little_endian(vdev), val);
Michael S. Tsirkineef960a2014-10-22 15:35:56 +0300276}
277
278static inline __virtio64 cpu_to_virtio64(struct virtio_device *vdev, u64 val)
279{
Greg Kurzcf561f02015-04-24 14:24:27 +0200280 return __cpu_to_virtio64(virtio_is_little_endian(vdev), val);
Michael S. Tsirkineef960a2014-10-22 15:35:56 +0300281}
282
Rusty Russell0b90d062013-10-14 18:11:51 +1030283/* Config space accessors. */
284#define virtio_cread(vdev, structname, member, ptr) \
285 do { \
286 /* Must match the member's type, and be integer */ \
287 if (!typecheck(typeof((((structname*)0)->member)), *(ptr))) \
288 (*ptr) = 1; \
289 \
290 switch (sizeof(*ptr)) { \
291 case 1: \
292 *(ptr) = virtio_cread8(vdev, \
293 offsetof(structname, member)); \
294 break; \
295 case 2: \
296 *(ptr) = virtio_cread16(vdev, \
297 offsetof(structname, member)); \
298 break; \
299 case 4: \
300 *(ptr) = virtio_cread32(vdev, \
301 offsetof(structname, member)); \
302 break; \
303 case 8: \
304 *(ptr) = virtio_cread64(vdev, \
305 offsetof(structname, member)); \
306 break; \
307 default: \
308 BUG(); \
309 } \
310 } while(0)
311
312/* Config space accessors. */
313#define virtio_cwrite(vdev, structname, member, ptr) \
314 do { \
315 /* Must match the member's type, and be integer */ \
316 if (!typecheck(typeof((((structname*)0)->member)), *(ptr))) \
317 BUG_ON((*ptr) == 1); \
318 \
319 switch (sizeof(*ptr)) { \
320 case 1: \
321 virtio_cwrite8(vdev, \
322 offsetof(structname, member), \
323 *(ptr)); \
324 break; \
325 case 2: \
326 virtio_cwrite16(vdev, \
327 offsetof(structname, member), \
328 *(ptr)); \
329 break; \
330 case 4: \
331 virtio_cwrite32(vdev, \
332 offsetof(structname, member), \
333 *(ptr)); \
334 break; \
335 case 8: \
336 virtio_cwrite64(vdev, \
337 offsetof(structname, member), \
338 *(ptr)); \
339 break; \
340 default: \
341 BUG(); \
342 } \
343 } while(0)
344
Michael S. Tsirkind71de9e2014-12-14 16:55:44 +0200345/* Read @count fields, @bytes each. */
346static inline void __virtio_cread_many(struct virtio_device *vdev,
347 unsigned int offset,
348 void *buf, size_t count, size_t bytes)
349{
350 u32 old, gen = vdev->config->generation ?
351 vdev->config->generation(vdev) : 0;
352 int i;
353
354 do {
355 old = gen;
356
357 for (i = 0; i < count; i++)
358 vdev->config->get(vdev, offset + bytes * i,
359 buf + i * bytes, bytes);
360
361 gen = vdev->config->generation ?
362 vdev->config->generation(vdev) : 0;
363 } while (gen != old);
364}
365
Rusty Russell0b90d062013-10-14 18:11:51 +1030366static inline void virtio_cread_bytes(struct virtio_device *vdev,
367 unsigned int offset,
368 void *buf, size_t len)
369{
Michael S. Tsirkind71de9e2014-12-14 16:55:44 +0200370 __virtio_cread_many(vdev, offset, buf, len, 1);
Rusty Russell0b90d062013-10-14 18:11:51 +1030371}
372
Michael S. Tsirkincaa0e2d2015-04-01 08:21:51 +1030373static inline u8 virtio_cread8(struct virtio_device *vdev, unsigned int offset)
374{
375 u8 ret;
376 vdev->config->get(vdev, offset, &ret, sizeof(ret));
377 return ret;
378}
379
Rusty Russell0b90d062013-10-14 18:11:51 +1030380static inline void virtio_cwrite8(struct virtio_device *vdev,
381 unsigned int offset, u8 val)
382{
383 vdev->config->set(vdev, offset, &val, sizeof(val));
384}
385
386static inline u16 virtio_cread16(struct virtio_device *vdev,
387 unsigned int offset)
388{
389 u16 ret;
390 vdev->config->get(vdev, offset, &ret, sizeof(ret));
Michael S. Tsirkin92e6d742014-10-22 16:59:01 +0300391 return virtio16_to_cpu(vdev, (__force __virtio16)ret);
Rusty Russell0b90d062013-10-14 18:11:51 +1030392}
393
394static inline void virtio_cwrite16(struct virtio_device *vdev,
395 unsigned int offset, u16 val)
396{
Michael S. Tsirkin92e6d742014-10-22 16:59:01 +0300397 val = (__force u16)cpu_to_virtio16(vdev, val);
Rusty Russell0b90d062013-10-14 18:11:51 +1030398 vdev->config->set(vdev, offset, &val, sizeof(val));
399}
400
401static inline u32 virtio_cread32(struct virtio_device *vdev,
402 unsigned int offset)
403{
404 u32 ret;
405 vdev->config->get(vdev, offset, &ret, sizeof(ret));
Michael S. Tsirkin92e6d742014-10-22 16:59:01 +0300406 return virtio32_to_cpu(vdev, (__force __virtio32)ret);
Rusty Russell0b90d062013-10-14 18:11:51 +1030407}
408
409static inline void virtio_cwrite32(struct virtio_device *vdev,
410 unsigned int offset, u32 val)
411{
Michael S. Tsirkin92e6d742014-10-22 16:59:01 +0300412 val = (__force u32)cpu_to_virtio32(vdev, val);
Rusty Russell0b90d062013-10-14 18:11:51 +1030413 vdev->config->set(vdev, offset, &val, sizeof(val));
414}
415
416static inline u64 virtio_cread64(struct virtio_device *vdev,
417 unsigned int offset)
418{
419 u64 ret;
Michael S. Tsirkind71de9e2014-12-14 16:55:44 +0200420 __virtio_cread_many(vdev, offset, &ret, 1, sizeof(ret));
Michael S. Tsirkin92e6d742014-10-22 16:59:01 +0300421 return virtio64_to_cpu(vdev, (__force __virtio64)ret);
Rusty Russell0b90d062013-10-14 18:11:51 +1030422}
423
424static inline void virtio_cwrite64(struct virtio_device *vdev,
425 unsigned int offset, u64 val)
426{
Michael S. Tsirkin92e6d742014-10-22 16:59:01 +0300427 val = (__force u64)cpu_to_virtio64(vdev, val);
Rusty Russell0b90d062013-10-14 18:11:51 +1030428 vdev->config->set(vdev, offset, &val, sizeof(val));
429}
430
431/* Conditional config space accessors. */
432#define virtio_cread_feature(vdev, fbit, structname, member, ptr) \
433 ({ \
434 int _r = 0; \
435 if (!virtio_has_feature(vdev, fbit)) \
436 _r = -ENOENT; \
437 else \
438 virtio_cread((vdev), structname, member, ptr); \
439 _r; \
440 })
Jason Wang75a0a522012-08-28 13:54:14 +0200441
Rusty Russellec3d41c2007-10-22 11:03:36 +1000442#endif /* _LINUX_VIRTIO_CONFIG_H */