Re: [kvm-unit-tests PATCH] x86: Add control register pinning tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On Jun 17, 2020, at 3:46 PM, John Andersen <john.s.andersen@xxxxxxxxx> wrote:
> 
> Paravirutalized control register pinning adds MSRs guests can use to
> discover which bits in CR0/4 they may pin, and MSRs for activating
> pinning for any of those bits.
> 

[ sni[

> +static void vmx_cr_pin_test_guest(void)
> +{
> +	unsigned long i, cr0, cr4;
> +
> +	/* Step 1. Skip feature detection to skip handling VMX_CPUID */
> +	/* nop */

I do not quite get this comment. Why do you skip checking whether the
feature is enabled? What happens if KVM/bare-metal/other-hypervisor that
runs this test does not support this feature?





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux