Mailing List Archive

Crash when using xencov
I am having trouble retrieving xen coverage. I compiled and installed xen stable 4.16 on Debian 11, enabling support for coverage (using gcov).

To reproduce my scenario:
- make -C xen menuconfig
- disable flag /CommonFeatures/LivePatchingSupport.
- enable enable DebuggingOptions/CodeCoverageSupport.

Once xen is installed, if I run the xencov utility from dom0 userspace, or invoke the SYSCTL_coverage_op hypervcall I get a hypervisor crash resulting from a page fault in the function xc_sysctl().

Carmine.
Re: Crash when using xencov [ In reply to ]
Hello,

On 27/06/2022 12:34, Carmine Cesarano wrote:
> I am having trouble retrieving xen coverage. I compiled and installed xen stable 4.16 on Debian 11, enabling support for coverage (using gcov).

By stable, do you mean the tip of stable-4.16 or something different?

>
> To reproduce my scenario:
> - make -C xen menuconfig
> - disable flag /CommonFeatures/LivePatchingSupport.
> - enable enable DebuggingOptions/CodeCoverageSupport.
>
> Once xen is installed, if I run the xencov utility from dom0 userspace, or invoke the SYSCTL_coverage_op hypervcall I get a hypervisor crash resulting from a page fault in the function xc_sysctl().

Can you provide the logs?

Cheers,

--
Julien Grall