commit: Make base read-only if there is an early failure
[qemu/ar7.git] / tests / libqos / virtio-balloon.h
blobe8066c42bb5aaedc192dbf0c05d341b410526e73
1 /*
2 * libqos driver framework
4 * Copyright (c) 2018 Emanuele Giuseppe Esposito <e.emanuelegiuseppe@gmail.com>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License version 2 as published by the Free Software Foundation.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, see <http://www.gnu.org/licenses/>
19 #include "libqos/qgraph.h"
20 #include "libqos/virtio.h"
21 #include "libqos/virtio-pci.h"
23 typedef struct QVirtioBalloon QVirtioBalloon;
24 typedef struct QVirtioBalloonPCI QVirtioBalloonPCI;
25 typedef struct QVirtioBalloonDevice QVirtioBalloonDevice;
27 struct QVirtioBalloon {
28 QVirtioDevice *vdev;
31 struct QVirtioBalloonPCI {
32 QVirtioPCIDevice pci_vdev;
33 QVirtioBalloon balloon;
36 struct QVirtioBalloonDevice {
37 QOSGraphObject obj;
38 QVirtioBalloon balloon;