Skip to content

[PW_SID:992124] RISC-V: KVM: Write hgatp register with valid mode bits - #785

Closed
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw992124
Closed

[PW_SID:992124] RISC-V: KVM: Write hgatp register with valid mode bits#785
linux-riscv-bot wants to merge 1 commit into
workflow__riscv__fixesfrom
pw992124

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 992124 applied to workflow__riscv__fixes

Name: RISC-V: KVM: Write hgatp register with valid mode bits
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=992124
Version: 1

According to the RISC-V Privileged Architecture Spec, when MODE=Bare
is selected,software must write zero to the remaining fields of hgatp.

We have detected the valid mode supported by the HW before, So using a
valid mode to detect how many vmid bits are supported.

Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Write hgatp register with valid mode bits"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 91.30 seconds
Result: ERROR
Output:

Full log:
W: Support for running offline not available (unshare: unshare failed: Operation not permitted)
I: config: PASS in 0:00:10.393921
I: default: FAIL in 0:01:14.895547
I: kernel: SKIP in 0:00:00.000005
I: xipkernel: SKIP in 0:00:00.000002
I: modules: FAIL in 0:00:00.061979
I: dtbs: PASS in 0:00:01.347936
I: dtbs-legacy: SKIP in 0:00:00.004675
I: debugkernel: SKIP in 0:00:00.000005
I: headers: PASS in 0:00:01.006926
I: build output in /build/tmp.zK7feHVukm
tuxmake --download-all-korg-gcc-toolchains --target-arch=riscv --kconfig=rv32_defconfig --toolchain=llvm --wrapper=ccache --environment=KBUILD_BUILD_TIMESTAMP=@1621270510 --environment=KBUILD_BUILD_USER=tuxmake --environment=KBUILD_BUILD_HOST=tuxmake --environment=KCFLAGS=-ffile-prefix-map=/build/tmp.zK7feHVukm/build/= --runtime=null --image=docker.io/tuxmake/riscv_clang CROSS_COMPILE=riscv64-linux- config default kernel xipkernel modules dtbs dtbs-legacy debugkernel headers
make --silent --keep-going --jobs=48 O=/build/tmp.zK7feHVukm/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' rv32_defconfig
make --silent --keep-going --jobs=48 O=/build/tmp.zK7feHVukm/build ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang'
/build/tmp7f29n8km/arch/riscv/kvm/vmid.c:31:24: error: call to undeclared function 'kvm_riscv_gstage_mode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   31 |         csr_write(CSR_HGATP, (kvm_riscv_gstage_mode() << HGATP_MODE_SHIFT) | HGATP_VMID);
      |                               ^
1 error generated.
make[5]: *** [/build/tmp7f29n8km/scripts/Makefile.build:287: arch/riscv/kvm/vmid.o] Error 1
make[5]: Target 'arch/riscv/kvm/' not remade because of errors.
make[4]: *** [/build/tmp7f29n8km/scripts/Makefile.build:556: arch/riscv/kvm] Error 2
make[4]: Target 'arch/riscv/' not remade because of errors.
make[3]: *** [/build/tmp7f29n8km/scripts/Makefile.build:556: arch/riscv] Error 2
make[3]: Target './' not remade because of errors.
make[2]: *** [/build/tmp7f29n8km/Makefile:2011: .] Error 2
make[2]: Target '__all' not remade because of errors.
make[1]: *** [/build/tmp7f29n8km/Makefile:248: __sub-make] Error 2
make[1]: Target '__all' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target '__all' not remade because of errors.
rm -rf /build/tmp.zK7feHVukm/build/modinstall
make --silent --keep-going --jobs=48 O=/build/tmp.zK7feHVukm/build INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=/build/tmp.zK7feHVukm/build/modinstall ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' modules_install
make[3]: *** No rule to make target 'modules.order', needed by '/build/tmp.zK7feHVukm/build/modinstall/lib/modules/6.17.0-rc1-00002-gd547106ed940/modules.order'.
make[3]: *** No rule to make target 'modules.builtin', needed by '/build/tmp.zK7feHVukm/build/modinstall/lib/modules/6.17.0-rc1-00002-gd547106ed940/modules.builtin'.
make[3]: *** No rule to make target 'modules.builtin.modinfo', needed by '/build/tmp.zK7feHVukm/build/modinstall/lib/modules/6.17.0-rc1-00002-gd547106ed940/modules.builtin.modinfo'.
make[3]: Target '__modinst' not remade because of errors.
make[2]: *** [/build/tmp7f29n8km/Makefile:1917: modules_install] Error 2
make[1]: *** [/build/tmp7f29n8km/Makefile:248: __sub-make] Error 2
make[1]: Target 'modules_install' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'modules_install' not remade because of errors.
make --silent --keep-going --jobs=48 O=/build/tmp.zK7feHVukm/build INSTALL_DTBS_PATH=/build/tmp.zK7feHVukm/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs
rm -rf /build/tmp.zK7feHVukm/build/dtbsinstall
mkdir -p /build/tmp.zK7feHVukm/build/dtbsinstall/dtbs
make --silent --keep-going --jobs=48 O=/build/tmp.zK7feHVukm/build INSTALL_DTBS_PATH=/build/tmp.zK7feHVukm/build/dtbsinstall/dtbs ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' dtbs_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1755330220 --clamp-mtime -caf /build/tmp.zK7feHVukm/build/dtbs.tar -C /build/tmp.zK7feHVukm/build/dtbsinstall dtbs
rm -rf /build/tmp.zK7feHVukm/build/install_hdr
make --silent --keep-going --jobs=48 O=/build/tmp.zK7feHVukm/build INSTALL_HDR_PATH=/build/tmp.zK7feHVukm/build/install_hdr/ ARCH=riscv CROSS_COMPILE=riscv64-linux- LLVM=1 'CC=ccache clang' 'HOSTCC=ccache clang' headers_install
tar --sort=name --owner=tuxmake:1000 --group=tuxmake:1000 --mtime=@1755330220 --clamp-mtime -caf /build/tmp.zK7feHVukm/build/headers.tar -C /build/tmp.zK7feHVukm/build/install_hdr .
warnings/errors:
/build/tmp7f29n8km/arch/riscv/kvm/vmid.c:31:24: error: call to undeclared function 'kvm_riscv_gstage_mode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]


@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Write hgatp register with valid mode bits"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 759.01 seconds
Result: ERROR
Output:

Redirect to /build/tmp.qPQMsFsshE and /build/tmp.IscPWmbMpZ
Tree base:
99e0e6d530102 ("Adding CI files")
Building the whole tree with the patch
error:
/build/tmp7f29n8km/arch/riscv/kvm/vmid.c:31:24: error: call to undeclared function 'kvm_riscv_gstage_mode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]



real	12m32.781s
user	497m9.608s
sys	83m38.556s

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Write hgatp register with valid mode bits"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 984.94 seconds
Result: ERROR
Output:

Redirect to /build/tmp.MKeZw1LJvT and /build/tmp.rCF867YFWl
Tree base:
99e0e6d530102 ("Adding CI files")
Building the whole tree with the patch
error:
/build/tmp7f29n8km/arch/riscv/kvm/vmid.c:31:31: error: implicit declaration of function 'kvm_riscv_gstage_mode'; did you mean 'kvm_riscv_gstage_vmid_init'? [-Wimplicit-function-declaration]



real	16m18.314s
user	648m6.236s
sys	99m55.286s

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Write hgatp register with valid mode bits"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 21.33 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Write hgatp register with valid mode bits"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 22.28 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Write hgatp register with valid mode bits"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.76 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Write hgatp register with valid mode bits"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 76.05 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Write hgatp register with valid mode bits"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.25 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Write hgatp register with valid mode bits"
kdoc
Desc: Detects for kdoc errors
Duration: 2.91 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Write hgatp register with valid mode bits"
module-param
Desc: Detect module_param changes
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Write hgatp register with valid mode bits"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "RISC-V: KVM: Write hgatp register with valid mode bits"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.31 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot deleted the pw992124 branch August 18, 2025 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants