Re: kvm-unit-tests arm ptimer test
On Thu, Aug 10, 2017 at 12:33:08PM +0530, Kalra, Ashish wrote: > > Just realized that KVM/ARM now supports EL1 physical timer emulation > for guests and had a look at the patch set that enables VMs to use the EL1 > physical timer through trap-and-emulate for arm64. I am using an > older KVM release which is causing guest termination on physical > timer access. I had some proposed changes that would skip (output SKIP) the physical timer tests when running on old KVM. We didn't bother with them, though, because kvm-unit-tests is really meant to always test the latest KVM. But, now that I see those changes would have saved you some grief, I guess we should have gone ahead and applied them. I'll send a patch later today. Thanks, drew ___ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
Re: kvm-unit-tests arm ptimer test
Just realized that KVM/ARM now supports EL1 physical timer emulation for guests and had a look at the patch set that enables VMs to use the EL1 physical timer through trap-and-emulate for arm64. I am using an older KVM release which is causing guest termination on physical timer access. Thanks, Ashish On 8/10/2017 3:01 AM, Kalra, Ashish wrote: 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
kvm-unit-tests arm ptimer test
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