xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Stefano.Stabellini@eu.citrix.com, tim@xen.org,
	patches@linaro.org, xen-devel@lists.xen.org
Subject: Re: [PATCH 2/2] xen/arm: don't enable VFP on XEN during the boot
Date: Thu, 30 May 2013 16:38:27 +0100	[thread overview]
Message-ID: <51A77273.4070703@linaro.org> (raw)
In-Reply-To: <1369926934.18727.20.camel@zakaz.uk.xensource.com>

On 05/30/2013 04:15 PM, Ian Campbell wrote:

> On Thu, 2013-05-30 at 15:38 +0100, Julien Grall wrote:
>> We can safely remove VFP support in XEN because:
>>     - the guest will enable VFP support when a process requires it
>>     - XEN doesn't use VFP
>>
>> Signed-off-by: Julien Grall <julien.grall@linaro.org>
>> ---
>>  xen/arch/arm/Rules.mk     |    2 +-
>>  xen/arch/arm/setup.c      |    2 --
>>  xen/arch/arm/smpboot.c    |    1 -
>>  xen/include/asm-arm/vfp.h |   28 ----------------------------
>>  4 files changed, 1 insertion(+), 32 deletions(-)
>>
>> diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk
>> index 422ed04..a18e7fd 100644
>> --- a/xen/arch/arm/Rules.mk
>> +++ b/xen/arch/arm/Rules.mk
>> @@ -22,7 +22,7 @@ arm := y
>>  ifeq ($(TARGET_SUBARCH),arm32)
>>  # Prevent floating-point variables from creeping into Xen.
>>  CFLAGS += -msoft-float
>> -CFLAGS += -mcpu=cortex-a15 -mfpu=vfpv3 -mfloat-abi=softfp
>> +CFLAGS += -mcpu=cortex-a15
> 
> Does removing this have the side effect that if we accidentally add a
> floating point operation to the hypervisor (very easy to do) it will now
> compile with h/w fp, unlike previously where it would generate a call to
> a non-existent library call and fail the build?


Yes. GCC will notify that VFP support is not enabled, except if we use
directly mrc and mcr.

  reply	other threads:[~2013-05-30 15:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 14:38 [PATCH 0/2] Implement VFP context switch for arm32 Julien Grall
2013-05-30 14:38 ` [PATCH 1/2] xen/arm32: implement VFP context switch Julien Grall
2013-05-30 15:11   ` Ian Campbell
2013-05-30 15:25     ` Julien Grall
2013-05-30 14:38 ` [PATCH 2/2] xen/arm: don't enable VFP on XEN during the boot Julien Grall
2013-05-30 15:15   ` Ian Campbell
2013-05-30 15:38     ` Julien Grall [this message]
2013-05-30 15:43       ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51A77273.4070703@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=Stefano.Stabellini@eu.citrix.com \
    --cc=patches@linaro.org \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).