On Thu, 26 Nov 2020 at 22:17, Alexander Graf <ag...@csgraf.de> wrote: > Are you suggesting that on boot, we start a tiny mini-VM to enumerate > the PARange and set highmem based on it? That sounds like absolute > overkill to me ...
You'll likely want that for a bunch of other information too. The KVM version of this is kvm_arm_create_scratch_host_vcpu(). In particular you must populate the ID register information correctly because target/arm code is steadily migrating towards "don't have ARM_FEATURE_* bits, just look at ID register fields". You'll want some equivalent of kvm_arm_get_host_cpu_features(), I expect. thanks -- PMM