def METHOD_NAME(self) -> bool:
    try:
        from m5.objects import BaseKvmCPU
        return isinstance(self.core, BaseKvmCPU)
    except ImportError:
        # If importing BaseKvmCPU throws an exception then it's because
        # it's not compiled into the binary. If this is the case then this
        # can't be a KVM core.
        return False