Single Step Example on Xen 4.6.1

106 views
Skip to first unread message

00150891

unread,
May 19, 2016, 1:12:38 PM5/19/16
to vmitools
Hi,

is the singlestep-event-example not running on Xen (using 4.6.1)?

I am getting the following error, when running it: VMI_ERROR: xen_start_single_step error: no system support for event type
Also setting up a similar event manually or with the makro leads to the same result.

Xen-events are enabled in by configuration.

I am glad if anyone can give me a hint :)

Tamas K Lengyel

unread,
May 19, 2016, 1:28:04 PM5/19/16
to vmit...@googlegroups.com
It depends on the hardware. It seems you have a CPU which doesn't have
Monitor Trap Flag capability. Or at least Xen thinks that way, so
singlestepping is disabled on your machine.

Tamas
> --
> You received this message because you are subscribed to the Google Groups
> "vmitools" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vmitools+u...@googlegroups.com.
> To post to this group, send email to vmit...@googlegroups.com.
> Visit this group at https://groups.google.com/group/vmitools.
> For more options, visit https://groups.google.com/d/optout.

00150891

unread,
May 20, 2016, 5:07:09 AM5/20/16
to vmitools
Is there a way to tell if my CPU doesn't have a Monitor Trap Flag?
According to /proc/cpuinfo the flags "monitor" as well as "hypervisor" are enabled on my machine.

Tamas K Lengyel

unread,
May 20, 2016, 2:56:20 PM5/20/16
to vmit...@googlegroups.com
Xen checks the following bit in the MSR_IA32_VMX_PROCBASED_CTLS MSR of
the cpu to determine if singlestep is supported:

#define CPU_BASED_MONITOR_TRAP_FLAG 0x08000000

00150891

unread,
May 23, 2016, 8:44:23 AM5/23/16
to vmitools
Thanks for the information! Got it running,
Cheers

Tamas K Lengyel

unread,
May 23, 2016, 1:07:37 PM5/23/16
to vmit...@googlegroups.com
Would you mind sharing what you did to get it working?

Thanks!

00150891

unread,
May 25, 2016, 6:43:08 AM5/25/16
to vmitools
I switched my machine. Intel Core 2 Duo (with VT-x enabled) seems to be too old. On an i5 there were no troubles getting everything running.
Reply all
Reply to author
Forward
0 new messages