[PATCH] linux-headers: loongarch: add kvm_para.h and unistd_64.h

Bibo Mao posted 1 patch 1 month, 3 weeks ago
scripts/update-linux-headers.sh | 4 ++++
1 file changed, 4 insertions(+)
[PATCH] linux-headers: loongarch: add kvm_para.h and unistd_64.h
Posted by Bibo Mao 1 month, 3 weeks ago
KVM LBT supports on LoongArch requires the linux-header kvm_para.h,
also unistd_64.h is required by unistd.h on LoongArch since 6.11

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
---
 scripts/update-linux-headers.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
index c34ac6454e..3c411f0318 100755
--- a/scripts/update-linux-headers.sh
+++ b/scripts/update-linux-headers.sh
@@ -186,6 +186,10 @@ EOF
     if [ $arch = riscv ]; then
         cp "$hdrdir/include/asm/ptrace.h" "$output/linux-headers/asm-riscv/"
     fi
+    if [ $arch = loongarch ]; then
+        cp "$hdrdir/include/asm/kvm_para.h" "$output/linux-headers/asm-loongarch/"
+        cp "$hdrdir/include/asm/unistd_64.h" "$output/linux-headers/asm-loongarch/"
+    fi
 done
 arch=
 

base-commit: 3b14a767eaca3df5534a162851f04787b363670e
-- 
2.39.3
Re: [PATCH] linux-headers: loongarch: add kvm_para.h and unistd_64.h
Posted by maobibo 1 month, 1 week ago
ping.

@Song

Could you give some comments since it is LoongArch specific?

Regards
Bibo Mao

On 2024/9/29 下午3:22, Bibo Mao wrote:
> KVM LBT supports on LoongArch requires the linux-header kvm_para.h,
> also unistd_64.h is required by unistd.h on LoongArch since 6.11
> 
> Signed-off-by: Bibo Mao <maobibo@loongson.cn>
> ---
>   scripts/update-linux-headers.sh | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
> index c34ac6454e..3c411f0318 100755
> --- a/scripts/update-linux-headers.sh
> +++ b/scripts/update-linux-headers.sh
> @@ -186,6 +186,10 @@ EOF
>       if [ $arch = riscv ]; then
>           cp "$hdrdir/include/asm/ptrace.h" "$output/linux-headers/asm-riscv/"
>       fi
> +    if [ $arch = loongarch ]; then
> +        cp "$hdrdir/include/asm/kvm_para.h" "$output/linux-headers/asm-loongarch/"
> +        cp "$hdrdir/include/asm/unistd_64.h" "$output/linux-headers/asm-loongarch/"
> +    fi
>   done
>   arch=
>   
> 
> base-commit: 3b14a767eaca3df5534a162851f04787b363670e
> 


Re: [PATCH] linux-headers: loongarch: add kvm_para.h and unistd_64.h
Posted by gaosong 1 month, 1 week ago
在 2024/10/16 下午4:13, maobibo 写道:
> ping.
>
> @Song
>
> Could you give some comments since it is LoongArch specific?
>
> Regards
> Bibo Mao
>
> On 2024/9/29 下午3:22, Bibo Mao wrote:
>> KVM LBT supports on LoongArch requires the linux-header kvm_para.h,
>> also unistd_64.h is required by unistd.h on LoongArch since 6.11
>>
>> Signed-off-by: Bibo Mao <maobibo@loongson.cn>
>> ---
>>   scripts/update-linux-headers.sh | 4 ++++
>>   1 file changed, 4 insertions(+)
>>
Acked-by: Song Gao <gaosong@loongson.cn>

Could you update the linux-headers togather?

the series[1]  need update kvm.h.

[1]: https://patchew.org/QEMU/20240929070405.235200-1-maobibo@loongson.cn/

Thanks.
Song Gao
>> diff --git a/scripts/update-linux-headers.sh 
>> b/scripts/update-linux-headers.sh
>> index c34ac6454e..3c411f0318 100755
>> --- a/scripts/update-linux-headers.sh
>> +++ b/scripts/update-linux-headers.sh
>> @@ -186,6 +186,10 @@ EOF
>>       if [ $arch = riscv ]; then
>>           cp "$hdrdir/include/asm/ptrace.h" 
>> "$output/linux-headers/asm-riscv/"
>>       fi
>> +    if [ $arch = loongarch ]; then
>> +        cp "$hdrdir/include/asm/kvm_para.h" 
>> "$output/linux-headers/asm-loongarch/"
>> +        cp "$hdrdir/include/asm/unistd_64.h" 
>> "$output/linux-headers/asm-loongarch/"
>> +    fi
>>   done
>>   arch=
>>
>> base-commit: 3b14a767eaca3df5534a162851f04787b363670e
>>


Re: [PATCH] linux-headers: loongarch: add kvm_para.h and unistd_64.h
Posted by maobibo 1 month, 1 week ago

On 2024/10/16 下午4:41, gaosong wrote:
> 在 2024/10/16 下午4:13, maobibo 写道:
>> ping.
>>
>> @Song
>>
>> Could you give some comments since it is LoongArch specific?
>>
>> Regards
>> Bibo Mao
>>
>> On 2024/9/29 下午3:22, Bibo Mao wrote:
>>> KVM LBT supports on LoongArch requires the linux-header kvm_para.h,
>>> also unistd_64.h is required by unistd.h on LoongArch since 6.11
>>>
>>> Signed-off-by: Bibo Mao <maobibo@loongson.cn>
>>> ---
>>>   scripts/update-linux-headers.sh | 4 ++++
>>>   1 file changed, 4 insertions(+)
>>>
> Acked-by: Song Gao <gaosong@loongson.cn>
> 
> Could you update the linux-headers togather?
Sure, will do in next version.

Regards
Bibo Mao
> 
> the series[1]  need update kvm.h.
> 
> [1]: https://patchew.org/QEMU/20240929070405.235200-1-maobibo@loongson.cn/
> 
> Thanks.
> Song Gao
>>> diff --git a/scripts/update-linux-headers.sh 
>>> b/scripts/update-linux-headers.sh
>>> index c34ac6454e..3c411f0318 100755
>>> --- a/scripts/update-linux-headers.sh
>>> +++ b/scripts/update-linux-headers.sh
>>> @@ -186,6 +186,10 @@ EOF
>>>       if [ $arch = riscv ]; then
>>>           cp "$hdrdir/include/asm/ptrace.h" 
>>> "$output/linux-headers/asm-riscv/"
>>>       fi
>>> +    if [ $arch = loongarch ]; then
>>> +        cp "$hdrdir/include/asm/kvm_para.h" 
>>> "$output/linux-headers/asm-loongarch/"
>>> +        cp "$hdrdir/include/asm/unistd_64.h" 
>>> "$output/linux-headers/asm-loongarch/"
>>> +    fi
>>>   done
>>>   arch=
>>>
>>> base-commit: 3b14a767eaca3df5534a162851f04787b363670e
>>>
>