[Android-virt] [PATCH] Handle SCTLR & CPACR read/write in KVM ARM.

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

 



On 16/05/12 08:54, Peter Maydell wrote:
> On 16 May 2012 05:05, Anup Patel <anup at brainfault.org> wrote:
>> Realview-PB-A8 kernel boots fine on QEMU Emulator. The kernel gets alignment
>> faults only when we try to use KVM ARM.
> 
> TCG QEMU doesn't emulate alignment faults, so you'll never see them.
> (This is really a bug in TCG QEMU.)
> 
>> Although, I did not see this issue with VExpress-A9 kernel, so have
>> mentioned it explicitly in my patch. Making this change CPUID specific would
>> be even more correct way of doing it.
> 
> What I mean is that we should be checking CPUID and saying "no,
> you cannot emulate an A8 or A9 with KVM".

I strongly agree with that. We should certainly push back on anything
that pretends to expose a different CPU than the one we actually run on.

This is fundamentally broken because we're actually running on the
physical CPU. Think errata workaround, cache behavior, all the subtle
things that make A8/A9 vastly different from A15.

It you want to emulate an A8, use TCG QEMU.

	M.
-- 
Jazz is not dead. It just smells funny...




[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