diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index d5a8beb134..25b6653e38 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -20744,7 +20744,8 @@ qemuDomainGetResctrlMonData(virQEMUDriverPtr driver, caps = virQEMUDriverGetCapabilities(driver, false); if (tag == VIR_RESCTRL_MONITOR_TYPE_CACHE) { - features = caps->host.cache.monitor->features; + if (caps->host.cache.monitor) + features = caps->host.cache.monitor->features; } else { virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", _("Unsupported resctrl monitor type"));