[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 2/4] Add the NetBSD Virtual Machine Monitor accelerator.
From: |
Kamil Rytarowski |
Subject: |
Re: [PATCH v2 2/4] Add the NetBSD Virtual Machine Monitor accelerator. |
Date: |
Mon, 2 Mar 2020 19:09:44 +0100 |
User-agent: |
Mozilla/5.0 (X11; NetBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 02.03.2020 18:11, Paolo Bonzini wrote:
> On 03/02/20 12:41, Philippe Mathieu-Daudé wrote:
>>
>> Maybe you can add something like:
>>
>> if test "$targetos" = "NetBSD"; then
>> nvmm="check"
>> fi
>
> You could do just nvmm="" and, below,
>
> if test "$nvmm" != "no" && test "$targetos" = "NetBSD"
>
> But maybe even testing NetBSD is not needed since nvmm.h will likely not
> be there.
>
> Paolo
>
I have got no opinion here.
I can just change on request nvmm="yes" to nvmm="check" and be done.
>> to build by default with NVMM if available.
>>
>>> +##########################################
>>> +# NetBSD Virtual Machine Monitor (NVMM) accelerator check
>>> +if test "$nvmm" != "no" ; then
>>> + if check_include "nvmm.h" ; then
>>> + nvmm="yes"
>>> + LIBS="-lnvmm $LIBS"
>>> + else
>>> + if test "$nvmm" = "yes"; then
>>> + feature_not_found "NVMM" "NVMM is not available"
>>> + fi
>>> + nvmm="no"
>>> + fi
>>> +fi
>