/qemu/hw/cxl/ |
H A D | cxl-events.c | 19 /* Artificial limit on the number of events a log can hold */ 22 static void reset_overflow(CXLEventLog *log) in reset_overflow() argument 24 log->overflow_err_count = 0; in reset_overflow() 25 log->first_overflow_timestamp = 0; in reset_overflow() 26 log->last_overflow_timestamp = 0; in reset_overflow() 31 CXLEventLog *log; in cxl_event_init() local 35 log = &cxlds->event_logs[i]; in cxl_event_init() 36 log->next_handle = 1; in cxl_event_init() 37 log->overflow_err_count = 0; in cxl_event_init() 38 log->first_overflow_timestamp = 0; in cxl_event_init() [all …]
|
/qemu/tests/qemu-iotests/tests/ |
H A D | image-fleecing | 28 from iotests import log, qemu_img, qemu_io 64 log('--- Setting up images ---') 65 log('') 84 log('Done') 86 log('') 87 log('--- Launching VM ---') 88 log('') 98 log('Done') 100 log('') 101 log('--- Setting up Fleecing Graph ---') [all …]
|
H A D | inactive-node-nbd | 57 iotests.log('Preparing disk...') 66 iotests.log('Launching VM...') 83 iotests.log('\n=== Creating export of inactive node ===') 85 iotests.log('\nExports activate nodes without allow-inactive') 86 iotests.log('disk-fmt active: %s' % node_is_active(vm, 'disk-fmt')) 88 iotests.log('disk-fmt active: %s' % node_is_active(vm, 'disk-fmt')) 94 iotests.log('\nExports activate nodes with allow-inactive=false') 96 iotests.log('disk-fmt active: %s' % node_is_active(vm, 'disk-fmt')) 98 iotests.log('disk-fmt active: %s' % node_is_active(vm, 'disk-fmt')) 104 iotests.log('\nExport leaves nodes inactive with allow-inactive=true') [all …]
|
H A D | copy-before-write | 97 log = self.vm.get_log() 98 log = iotests.filter_qtest(log) 99 log = iotests.filter_qemu_io(log) 100 return log 160 log = self.vm.get_log() 161 log = iotests.filter_qemu_io(log) 162 return log 169 log = self.do_cbw_error('break-snapshot') 171 self.assertEqual(log, """\ 182 log = self.do_cbw_error('break-guest-write') [all …]
|
H A D | qsd-migrate | 38 iotests.log('Preparing disk...') 41 iotests.log('Launching source QSD...') 51 iotests.log('Launching source VM...') 57 iotests.log('Launching destination QSD...') 69 iotests.log('Launching destination VM...') 76 iotests.log('\nTest I/O on the source') 82 iotests.log('\nStarting migration...') 96 iotests.log('\nPre-switchover: Reconfigure QSD instances') 98 iotests.log(qsd_src.qmp('blockdev-set-active', {'active': False})) 107 iotests.log(qsd_dst.qmp('blockdev-set-active', {'active': True})) [all …]
|
/qemu/tests/qemu-iotests/ |
H A D | 219 | 43 iotests.log('=== Testing %s/%s ===' % (pause_cmd, resume_cmd)) 45 iotests.log(vm.qmp(pause_cmd, **{pause_arg: 'job0'})) 47 iotests.log(iotests.filter_qmp_event(vm.event_wait('JOB_STATUS_CHANGE'))) 49 iotests.log(result) 54 iotests.log(vm.qmp(resume_cmd, **{resume_arg: 'job0'})) 55 iotests.log(iotests.filter_qmp_event(vm.event_wait('JOB_STATUS_CHANGE'))) 60 iotests.log(result) 65 iotests.log(vm.qmp('query-jobs')) 70 iotests.log('') 71 iotests.log('') [all …]
|
H A D | 218 | 31 from iotests import log, qemu_img, qemu_io 70 log('') 71 log('=== Cancel mirror job before convergence ===') 72 log('') 74 log('--- force=false ---') 75 log('') 81 log('Cancelling job') 82 log(vm.qmp('block-job-cancel', device='mirror', force=False)) 84 log(vm.event_wait('BLOCK_JOB_CANCELLED'), 87 log('') [all …]
|
H A D | 194 | 40 iotests.log('Launching VMs...') 49 iotests.log('Launching NBD server on destination...') 50 …iotests.log(dest_vm.qmp('nbd-server-start', addr={'type': 'unix', 'data': {'path': nbd_sock_path}}… 51 iotests.log(dest_vm.qmp('nbd-server-add', device='drive0', writable=True)) 53 iotests.log('Starting `drive-mirror` on source...') 54 iotests.log(source_vm.qmp( 63 iotests.log('Waiting for `drive-mirror` to complete...') 64 iotests.log(source_vm.event_wait('BLOCK_JOB_READY'), 68 iotests.log('Starting migration...') 73 iotests.log(source_vm.qmp('migrate', uri='unix:{0}'.format(migration_sock_path))) [all …]
|
H A D | 213 | 38 iotests.log("=== Successful image creation (defaults) ===") 39 iotests.log("") 61 iotests.log("=== Successful image creation (explicit defaults) ===") 62 iotests.log("") 77 'log-size': 1048576, 88 iotests.log("=== Successful image creation (with non-default options) ===") 89 iotests.log("") 104 'log-size': 8388608, 115 iotests.log("=== Invalid BlockdevRef ===") 116 iotests.log("") [all …]
|
H A D | 237 | 39 iotests.log("=== Successful image creation (defaults) ===") 40 iotests.log("") 62 iotests.log("=== Successful image creation (inline blockdev-add, explicit defaults) ===") 63 iotests.log("") 91 iotests.log("=== Successful image creation (with non-default options) ===") 92 iotests.log("") 119 iotests.log("=== Invalid BlockdevRef ===") 120 iotests.log("") 132 iotests.log("=== Adapter types ===") 133 iotests.log("") [all …]
|
H A D | 246 | 24 from iotests import log 41 log('--- Preparing image & VM ---\n') 46 log('--- 1st Boot (Establish Baseline Image) ---\n') 49 log('\n--- Adding bitmaps Small, Medium, Large, and Transient ---\n') 59 log('--- Forcing flush of bitmaps to disk ---\n') 60 log(query_bitmaps(vm), indent=2) 64 log('--- 2nd Boot (Grow Image) ---\n') 66 log(query_bitmaps(vm), indent=2) 68 log('--- Adding new bitmap, growing image, and adding 2nd new bitmap ---') 75 log(query_bitmaps(vm), indent=2) [all …]
|
H A D | 234 | 43 iotests.log('Launching source VM...') 52 iotests.log('Launching destination VM...') 64 iotests.log(vm_a.qmp('blockdev-snapshot', node='drive0-backing', 66 iotests.log(vm_b.qmp('blockdev-snapshot', node='drive0-backing', 69 iotests.log('Starting migration to B...') 70 iotests.log(vm_a.qmp('migrate', uri='exec:cat >%s' % (fifo_a))) 77 iotests.log(vm_a.qmp('query-migrate')['return']['status']) 78 iotests.log(vm_b.qmp('query-migrate')['return']['status']) 80 iotests.log(vm_a.qmp('query-status')) 81 iotests.log(vm_b.qmp('query-status')) [all …]
|
H A D | 236 | 24 from iotests import log 48 log('--- Preparing image & VM ---\n') 53 log('\n--- Adding preliminary bitmaps A & B ---\n') 60 log('\n--- Emulating writes ---\n') 63 log(cmd) 64 log(vm.hmp_qemu_io("drive0", cmd)) 66 log(query_bitmaps(vm), indent=2) 68 log('\n--- Submitting & Aborting Transaction ---\n') 79 log(query_bitmaps(vm), indent=2) 81 log('\n--- Disabling B & Adding C ---\n') [all …]
|
H A D | 266 | 28 iotests.log("=== Successful image creation (defaults) ===") 29 iotests.log("") 42 iotests.log("=== Successful image creation (explicit defaults) ===") 43 iotests.log("") 58 iotests.log("=== Successful image creation (non-default options) ===") 59 iotests.log("") 73 iotests.log("=== Size not representable in CHS ===") 74 iotests.log("") 87 iotests.log("=== Zero size===") 88 iotests.log("") [all …]
|
H A D | 216 | 24 from iotests import log, qemu_img, qemu_io 30 log('') 31 log('=== Copy-on-read across nodes ===') 32 log('') 51 log('--- Setting up images ---') 52 log('') 60 log('Done') 62 log('') 63 log('--- Doing COR ---') 64 log('') [all …]
|
H A D | 310 | 24 from iotests import log, qemu_img, qemu_io 30 log('') 31 log('=== Copy-on-read across nodes ===') 32 log('') 43 log('--- Setting up images ---') 44 log('') 62 log('Done') 64 log('') 65 log('--- Doing COR ---') 66 log('') [all …]
|
H A D | 211 | 43 iotests.log("=== Successful image creation (defaults) ===") 44 iotests.log("") 62 iotests.log(iotests.qemu_img_map(disk_path)) 67 iotests.log("=== Successful image creation (explicit defaults) ===") 68 iotests.log("") 86 iotests.log(iotests.qemu_img_map(disk_path)) 91 iotests.log("=== Successful image creation (with non-default options) ===") 92 iotests.log("") 110 iotests.log(iotests.qemu_img_map(disk_path)) 115 iotests.log("=== Invalid BlockdevRef ===") [all …]
|
H A D | 257 | 27 from iotests import log, qemu_img 132 log("= Checking Bitmap {:s} =".format(name)) 137 log("expecting {:d} dirty sectors; have {:d}. {:s}".format( 139 log('') 163 log(vm.cmd('blockdev-create', job_id='bdc-file-job', 170 log(vm.cmd('blockdev-add', driver='file', 173 log(vm.cmd('blockdev-create', job_id='bdc-fmt-job', 180 log(vm.cmd('blockdev-add', driver=fmt, 205 log("--- Reference Backup #{:d} ---\n".format(n)) 211 log('') [all …]
|
H A D | 255 | 29 iotests.log('Finishing a commit job with background reads') 30 iotests.log('============================================') 31 iotests.log('') 38 iotests.log("=== Create backing chain and start VM ===") 39 iotests.log("") 60 iotests.log("=== Start background read requests ===") 61 iotests.log("") 69 iotests.log("=== Run a commit job ===") 70 iotests.log("") 80 iotests.log('') [all …]
|
H A D | 212 | 38 iotests.log("=== Successful image creation (defaults) ===") 39 iotests.log("") 61 iotests.log("=== Successful image creation (explicit defaults) ===") 62 iotests.log("") 85 iotests.log("=== Successful image creation (with non-default options) ===") 86 iotests.log("") 109 iotests.log("=== Invalid BlockdevRef ===") 110 iotests.log("") 121 iotests.log("=== Zero size ===") 122 iotests.log("") [all …]
|
H A D | 242 | 26 file_path, img_info_log, log 40 log('qemu-img info dump:\n') 45 log('The same bitmaps in JSON format:') 46 log(bitmaps, indent=2) 48 log('No bitmap in JSON format output') 83 log('Test {}'.format(num)) 87 log('') 92 log('Test {}\nChecking "in-use" flag...'.format(num)) 97 log('\nTest {}'.format(num)) 100 log('Write an unknown bitmap flag \'{}\' into a new QCOW2 image at offset {}' [all …]
|
H A D | 202 | 41 iotests.log('Launching VM...') 44 iotests.log('Adding IOThread...') 45 iotests.log(vm.qmp('object-add', 49 iotests.log('Adding blockdevs...') 50 iotests.log(vm.qmp('blockdev-add', 57 iotests.log(vm.qmp('blockdev-add', 65 iotests.log('Setting iothread...') 66 iotests.log(vm.qmp('x-blockdev-set-iothread', 69 iotests.log(vm.qmp('x-blockdev-set-iothread', 73 iotests.log('Creating external snapshots...') [all …]
|
/qemu/block/ |
H A D | vhdx-log.c | 13 * This file covers the functionality of the metadata log writing, parsing, and 34 VHDXLogEntries log; member 45 /* The log located on the disk is circular buffer containing 59 vhdx_log_peek_hdr(BlockDriverState *bs, VHDXLogEntries *log, in vhdx_log_peek_hdr() argument 69 if (log->read % VHDX_LOG_SECTOR_SIZE) { in vhdx_log_peek_hdr() 74 read = log->read; in vhdx_log_peek_hdr() 75 /* we are guaranteed that a) log sectors are 4096 bytes, in vhdx_log_peek_hdr() 76 * and b) the log length is a multiple of 1MB. So, there in vhdx_log_peek_hdr() 78 if ((read + sizeof(VHDXLogEntryHeader)) > log->length) { in vhdx_log_peek_hdr() 82 if (read == log->write) { in vhdx_log_peek_hdr() [all …]
|
H A D | blklogwrites.c | 23 /* Disk format stuff - taken from Linux drivers/md/dm-log-writes.c */ 61 * The mutable state of the driver, consisting of the current log sector 62 * and the number of log entries. 93 .name = "log-append", 95 .help = "Append to an existing log", 98 .name = "log-sector-size", 100 .help = "Log sector size", 103 .name = "log-super-update-interval", 105 .help = "Log superblock update interval (# of write requests)", 125 static uint64_t blk_log_writes_find_cur_log_sector(BdrvChild *log, in blk_log_writes_find_cur_log_sector() argument [all …]
|
/qemu/rust/qemu-api/src/ |
H A D | log.rs | 9 /// The `Log` enum provides a Rust abstraction for logging errors, corresponding 11 pub enum Log { enum 12 /// Log invalid access caused by the guest. 16 /// Log guest access of unimplemented functionality. 21 /// A macro to log messages conditionally based on a provided mask. 24 /// log level and, if so, formats and logs the message. It is the Rust 29 /// - `$mask`: A log level mask. This should be a variant of the `Log` enum. 31 /// macro. It specifies the structure of the log message. 37 /// use qemu_api::{log::Log, log_mask_ln}; 40 /// log_mask_ln!(Log::GuestError, "Address 0x{error_address:x} out of range"); [all …]
|