diff mbox series

gitlab-ci: Check building KVM-only aarch64 target

Message ID 20230119155646.50503-1-philmd@linaro.org
State New
Headers show
Series gitlab-ci: Check building KVM-only aarch64 target | expand

Commit Message

Philippe Mathieu-Daudé Jan. 19, 2023, 3:56 p.m. UTC
gitlab-ci: Add KVM-only aarch64 cross-build job

Add a new job to cross-build the aarch64 target with
only the KVM accelerator enabled (in particular, no TCG).

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
Based-on: <20230118193518.26433-1-farosas@suse.de>
          target/arm: CONFIG_TCG=n part 1

Successful job:
  https://gitlab.com/philmd/qemu/-/jobs/3630178191
  Duration: 15 minutes 25 seconds
---
 .gitlab-ci.d/crossbuilds.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Philippe Mathieu-Daudé Jan. 19, 2023, 4:14 p.m. UTC | #1
On 19/1/23 16:56, Philippe Mathieu-Daudé wrote:
> gitlab-ci: Add KVM-only aarch64 cross-build job
> 
> Add a new job to cross-build the aarch64 target with
> only the KVM accelerator enabled (in particular, no TCG).
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> Based-on: <20230118193518.26433-1-farosas@suse.de>
>            target/arm: CONFIG_TCG=n part 1
> 
> Successful job:
>    https://gitlab.com/philmd/qemu/-/jobs/3630178191
>    Duration: 15 minutes 25 seconds

Alternatively we could move it to the custom aarch64 runner
in the qemu-project namespace...

> ---
>   .gitlab-ci.d/crossbuilds.yml | 9 +++++++++
>   1 file changed, 9 insertions(+)
> 
> diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml
> index 8dbbb8f881..fc78d36b31 100644
> --- a/.gitlab-ci.d/crossbuilds.yml
> +++ b/.gitlab-ci.d/crossbuilds.yml
> @@ -210,3 +210,12 @@ cross-arm64-xen-only:
>       IMAGE: debian-arm64-cross
>       ACCEL: xen
>       EXTRA_CONFIGURE_OPTS: --disable-tcg --disable-kvm
> +
> +cross-arm64-kvm-only:
> +  extends: .cross_accel_build_job
> +  needs:
> +    job: arm64-debian-cross-container
> +  variables:
> +    IMAGE: debian-arm64-cross
> +    ACCEL: kvm
> +    EXTRA_CONFIGURE_OPTS: --disable-tcg --disable-xen --without-default-devices
Alex Bennée Jan. 19, 2023, 4:38 p.m. UTC | #2
Philippe Mathieu-Daudé <philmd@linaro.org> writes:

> On 19/1/23 16:56, Philippe Mathieu-Daudé wrote:
>> gitlab-ci: Add KVM-only aarch64 cross-build job
>> Add a new job to cross-build the aarch64 target with
>> only the KVM accelerator enabled (in particular, no TCG).
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> ---
>> Based-on: <20230118193518.26433-1-farosas@suse.de>
>>            target/arm: CONFIG_TCG=n part 1
>> Successful job:
>>    https://gitlab.com/philmd/qemu/-/jobs/3630178191
>>    Duration: 15 minutes 25 seconds
>
> Alternatively we could move it to the custom aarch64 runner
> in the qemu-project namespace...

Lets do that because we are under utilisied on that beefy box anyway and
it will save us shared CI minutes.

>
>> ---
>>   .gitlab-ci.d/crossbuilds.yml | 9 +++++++++
>>   1 file changed, 9 insertions(+)
>> diff --git a/.gitlab-ci.d/crossbuilds.yml
>> b/.gitlab-ci.d/crossbuilds.yml
>> index 8dbbb8f881..fc78d36b31 100644
>> --- a/.gitlab-ci.d/crossbuilds.yml
>> +++ b/.gitlab-ci.d/crossbuilds.yml
>> @@ -210,3 +210,12 @@ cross-arm64-xen-only:
>>       IMAGE: debian-arm64-cross
>>       ACCEL: xen
>>       EXTRA_CONFIGURE_OPTS: --disable-tcg --disable-kvm
>> +
>> +cross-arm64-kvm-only:
>> +  extends: .cross_accel_build_job
>> +  needs:
>> +    job: arm64-debian-cross-container
>> +  variables:
>> +    IMAGE: debian-arm64-cross
>> +    ACCEL: kvm
>> +    EXTRA_CONFIGURE_OPTS: --disable-tcg --disable-xen --without-default-devices
diff mbox series

Patch

diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml
index 8dbbb8f881..fc78d36b31 100644
--- a/.gitlab-ci.d/crossbuilds.yml
+++ b/.gitlab-ci.d/crossbuilds.yml
@@ -210,3 +210,12 @@  cross-arm64-xen-only:
     IMAGE: debian-arm64-cross
     ACCEL: xen
     EXTRA_CONFIGURE_OPTS: --disable-tcg --disable-kvm
+
+cross-arm64-kvm-only:
+  extends: .cross_accel_build_job
+  needs:
+    job: arm64-debian-cross-container
+  variables:
+    IMAGE: debian-arm64-cross
+    ACCEL: kvm
+    EXTRA_CONFIGURE_OPTS: --disable-tcg --disable-xen --without-default-devices