<div dir="ltr">Thanks for the info, as for ARM testing, we are happy to provide some machines if the community likes.<div><br></div><div>BR,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 9, 2020 at 8:03 PM Daniel P. Berrangé <<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Apr 09, 2020 at 07:52:27PM +0800, Zhenyu Zheng wrote:<br>
> Hi,<br>
> <br>
> Thanks alot for all the reviews, I'm updating the codes, as for those<br>
> headers,<br>
> hwcap.h is here:<br>
> <a href="https://github.com/torvalds/linux/blob/v5.6/arch/arm/include/asm/hwcap.h" rel="noreferrer" target="_blank">https://github.com/torvalds/linux/blob/v5.6/arch/arm/include/asm/hwcap.h</a> and<br>
> should be available for 5.6,<br>
> auxv.h is from glibc:<br>
> <a href="https://sourceware.org/git/?p=glibc.git;a=blob;f=misc/sys/auxv.h;h=1a563e1337e64e4218c1613b68dc2551a762ba00;hb=HEAD" rel="noreferrer" target="_blank">https://sourceware.org/git/?p=glibc.git;a=blob;f=misc/sys/auxv.h;h=1a563e1337e64e4218c1613b68dc2551a762ba00;hb=HEAD</a><br>
<br>
The key requirement from libvirt is that code must compile against our<br>
declared set of supported platforms<br>
<br>
    <a href="https://libvirt.org/platforms.html" rel="noreferrer" target="_blank">https://libvirt.org/platforms.html</a><br>
<br>
Usually RHEL-7 is the oldest platform that causes trouble.<br>
<br>
If code can't be made to compile on old platforms, then it is acceptable<br>
to use conditional compilation to disable the code.<br>
<br>
If you want to validate your patches build on all our required platforms,<br>
you can take advantage of our recent switch to GitLab<br>
<br>
Fork the libvirt repo:<br>
<br>
  <a href="https://gitlab.com/libvirt/libvirt" rel="noreferrer" target="_blank">https://gitlab.com/libvirt/libvirt</a><br>
<br>
and push your patches to a branch in your personal fork. This will trigger<br>
our automated build CI jobs across all important platforms.<br>
<br>
As an example here's a recent CI job run:<br>
<br>
  <a href="https://gitlab.com/libvirt/libvirt/pipelines/134381772" rel="noreferrer" target="_blank">https://gitlab.com/libvirt/libvirt/pipelines/134381772</a><br>
<br>
Note, however, that most of the jobs are using x86, so if you have any<br>
conditionally compiled arm code, we don't have good coverage for arm<br>
on the old distros, so that may benefit from manual testing.<br>
<br>
> > virCPUarmGetHost and the helpers it calls are architecture specific and<br>
> > should not be even compiled in on non-ARM.<br>
> <br>
>  yeah, understandable, I just don't see other archs like ppc and s390 doing<br>
> this so I didn't do it.<br>
<br>
Regards,<br>
Daniel<br>
-- <br>
|: <a href="https://berrange.com" rel="noreferrer" target="_blank">https://berrange.com</a>      -o-    <a href="https://www.flickr.com/photos/dberrange" rel="noreferrer" target="_blank">https://www.flickr.com/photos/dberrange</a> :|<br>
|: <a href="https://libvirt.org" rel="noreferrer" target="_blank">https://libvirt.org</a>         -o-            <a href="https://fstop138.berrange.com" rel="noreferrer" target="_blank">https://fstop138.berrange.com</a> :|<br>
|: <a href="https://entangle-photo.org" rel="noreferrer" target="_blank">https://entangle-photo.org</a>    -o-    <a href="https://www.instagram.com/dberrange" rel="noreferrer" target="_blank">https://www.instagram.com/dberrange</a> :|<br>
<br>
</blockquote></div>