]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/XenHypercallLib: enable virt extensions for ARM
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 16 Nov 2017 16:51:49 +0000 (16:51 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 17 Nov 2017 09:56:50 +0000 (09:56 +0000)
commit12c6484058a8c5a8751c51eb24e9bb95497649c6
treee5c011acccfa0cf4164f17dd3c30d1c970d68e09
parent77af86688c2a117f3addd44b8434c92744ac180e
OvmfPkg/XenHypercallLib: enable virt extensions for ARM

XenHypercallLib uses the 'hvc' instruction, which is not implemented
on all ARMv7 CPUs, and so we need to explicitly specify a CPU that
has the virtualization extensions.

This override used to be set at the platform level, but this was removed
in commit 0d36a219c7bdbb27d775b50837823b2a9928147c
('ArmPlatformPkg/PL031RealTimeClockLib: drop ArmPlatformSysConfigLib
reference), under the assumption that all users of the 'hvc' instruction
had already been fixed.

So fix this for GNU binutils by adding the 'virt' arch extension
directive, and for RVCT by setting the --cpu command line option to a
CPU that is virt capable.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Laszlo Ersek <lersek@redhat.com>
OvmfPkg/Library/XenHypercallLib/Arm/Hypercall.S
OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf