Re: [PATCH] KVM: IA64: Using CFLAGS_vcpu.o to compile vcpu.c

Avi Kivity <[email protected]>
Newsgroups org.kernel.vger.kvm-ia64,org.kernel.vger.kvm
Message-ID <[email protected]>
Zhang, Xiantao wrote:
> Avi Kivity wrote:
>   
>> Zhang, Xiantao wrote:
>>     
>>>> Can you provide more information on how this was only discovered
>>>> now? Was there a change in mainline that removed support for
>>>> EXTRA_CFLAGS?] 
>>>>
>>>>         
>>> It should be an old issue we didn't sense before.  To specify single
>>> object's compile option, only CFLAGS can work in this case. 
>>>       
>> How did we not notice the issue?  What is the effect of the missing
>> flags? 
>> It seems like a critical problem that should prevent kvm from working
>> at all, so I don't understand how it was discovered so late.
>>     
>
> Once missing this flags, compiler can touch the fixed registers and leads to faults. But fortunately,current gcc didn't use them for optimizations, so we didn't find it before. But anyway it should be a potential issue. 
> Updated one, remove kernel's default range. 
>
>   

Okay, so it worked by accident?

> Subject: [PATCH] KVM: ia64: Fix: Use CFLAGS_vcpu.o to compile vcpu.c
>
> EXTRA_CFLAGS doesn't work for this case.Without this flag,
> it may result in compiler touch fixed registers.
>   

Applied, thanks.

-- 
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.