Hello,

I have a general question on the ptimer test for KVM unit tests for the ARM/ARM64 platform, as the guest is only allowed to access to the physical counter and access to the physical timer is not allowed for the guest (CNTHCTL.EL1PCTEN is set and CNTHCTL.EL1PCEN is clear), so how is this ptimer test supposed to pass :

For example, in this test, reading CNTP_{CTL/CVAL}_EL0 will always cause exceptions while running in guest in the following function :

static void print_ptimer_info(void)
{
        printf("CNTPCT_EL0   : 0x%016lx\n", read_sysreg(cntpct_el0));
        printf("CNTP_CTL_EL0 : 0x%016lx\n", read_sysreg(cntp_ctl_el0));
        printf("CNTP_CVAL_EL0: 0x%016lx\n", read_sysreg(cntp_cval_el0));
}

Thanks,
Ashish
_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

Reply via email to