Re: [PATCH] ARM: KVM: enable traps on coprocessor cp15 c9 access

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

 



On 30.11.2012 15:48, Marc Zyngier wrote:
> On 30/11/12 14:35, Peter Maydell wrote:
>> On 30 November 2012 09:31, Claudio Fontana <Claudio.Fontana@xxxxxxxxxx> wrote:
>>> all the handlers are already there in coproc_a15.c, but the traps
>>> are not enabled at world switch in __kvm_vcpu_run.
>>> In particular this was noticed because the guests were trying to
>>> read the number of CPUs using l2ctlr, and the number of physical
>>> host CPUs was returned instead of the number of VCPUs.
>>
>> L2CTLR should be trapped via HCR.TIDCP, not the HSTR.
>> Traps for whole swathes of the coprocessor space via HSTR
>> should be avoided unless absolutely necessary; the functionally
>> grouped traps in HCR are much better.
>>
>> (In fact I thought we already did this? Marc?)
> 
> We already have HCR_TIDCP set in HCR, which should be enough (see ARM
> ARM B1.14.3).
> 
> You should definitely see L2CTLR accesses being trapped with this
> configuration. What is your hardware?
> 
> Thanks,
> 
> 	M.

Sorry for the late response, I had some email issues.

I am using Fast Models

Model Shell 7.1.44 (Jul 3 2012)

I tested again, and it does not trap on the fast models.
So I guess it's a fast models issue then.

Thanks,

Claudio Fontana


_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/cucslists/listinfo/kvmarm


[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux