Lines Matching +full:max +full:- +full:retries
3 # virtio-balloon tests
6 # later. See the COPYING file in the top-level directory.
31 '/31/Cloud/x86_64/images/Fedora-Cloud-Base-31-1.9.x86_64.qcow2'),
41 failure_message="Kernel panic - not syncing",
50 # Synchronize on virtio-block driver creating the root device
52 "while ! (dmesg -c | grep vda:) ; do sleep 1 ; done",
59 exec_command_and_wait_for_pattern(self, "modprobe virtio-balloon",
63 ret = self.vm.qmp('qom-get',
65 'property': 'guest-stats'})['return']
66 when = ret.get('last-update')
74 # there can be a delay between virtio-ballon driver
77 retries = 10
79 while when == 0 and retries:
80 ret = self.vm.qmp('qom-get',
82 'property': 'guest-stats'})['return']
83 when = ret.get('last-update')
85 retries = retries - 1
94 "stat-available-memory",
95 "stat-disk-caches",
96 "stat-free-memory",
97 "stat-htlb-pgalloc",
98 "stat-htlb-pgfail",
99 "stat-major-faults",
100 "stat-minor-faults",
101 "stat-swap-in",
102 "stat-swap-out",
103 "stat-total-memory",
119 self.vm.add_args("-S")
120 self.vm.add_args("-cpu", "max")
121 self.vm.add_args("-m", "2G")
125 self.vm.add_args("-boot", "menu=on")
126 self.vm.add_args("-accel", "kvm")
127 self.vm.add_args("-device", "virtio-balloon,id=balloon")
128 self.vm.add_args('-drive',
130 self.vm.add_args('-device', 'virtio-blk-pci,bus=pcie.0,' +
131 'drive=drv0,id=virtio-disk0,bootindex=1')
134 "-kernel",
136 "-initrd",
138 "-append",
144 self.vm.qmp('qom-set',
146 'property': 'guest-stats-polling-interval',
160 # rely on '-boot menu=on' to (hopefully) ensure we're
162 # 'stop', and thus have not loaded the virtio-balloon