[Bug 1854738] [NEW] ppc doesn't support for mttcg but ppc64 supported

2019-12-02 Thread Yonggang Luo
Public bug reported: Currently ppc and ppc64abi32 doesn't suppport for mttcg, I am looking for support ``` ppc) gdb_xml_files="power-core.xml power-fpu.xml power-altivec.xml power-spe.xml" ;; ppc64) TARGET_BASE_ARCH=ppc TARGET_ABI_DIR=ppc mttcg=yes

Issue: whpx mode can not install windows 7 os.

2020-01-13 Thread Yonggang Luo
```. -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

[Bug 1622582] Re: Can't install Windows 7 with q35 (SATA)

2020-01-13 Thread Yonggang Luo
I also face this problem, any idea to resolve. I am using qemeu 4.2 + whpx support but failed to install ./qemu-system-x86_64 -m 4096 \ -vga vmware \ -machine q35 \ -accel whpx \ -usb -device usb-kbd \ -device usb-mouse -device usb-audio -boot c \ -netdev

Does ppc target support for MTTCG are stable?

2020-01-09 Thread Yonggang Luo
I enabled it and working, but I don't know if there any other issue are still not resolved.. -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

[Bug 1866577] [NEW] powerpc-none-eabi-gdb.exe GDB 9.1 with QEMU 4.2 gdb-stub comes with Reply contains invalid hex digit 79

2020-03-08 Thread Yonggang Luo
Public bug reported: I am using powerpc-none-eabi-gdb with qemu 4.2, but it comes with the following error: undefinedC:\CI-Tools\msys64\powerpc-none-eabi\usr\local\bin\powerpc- none-eabi-gdb.exe: warning: Couldn't determine a path for the index cache directory. ```Not implemented stop reason

I am trying to fixes a issue with QEMU with VxWorks.

2020-03-08 Thread Yonggang Luo
00 20 blr The QEMU are getting stuck and can not running the following instructions, What I need to do to inspect which instruction are getting stuck and how to fix it? Any means to debugging that. -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: [RFC PATCH v2] target/ppc: Enable hardfloat for PPC

2020-04-10 Thread Yonggang Luo
8_sqrt(xb->f128, ); > env->fp_status.float_exception_flags |= tstat.float_exception_flags; > > @@ -3449,7 +3449,7 @@ void helper_xssubqp(CPUPPCState *env, uint32_t > opcode, > tstat.float_rounding_mode = float_round_to_odd; > } > > - set_float_exception_flags(0, ); > +set_float_exception_flags(env->default_fp_excpt_flags, ); > t.f128 = float128_sub(xa->f128, xb->f128, ); > env->fp_status.float_exception_flags |= tstat.float_exception_flags; > > diff --git a/target/ppc/translate_init.inc.c > b/target/ppc/translate_init.inc.c > index 53995f62ea..ab1a6db4f1 100644 > --- a/target/ppc/translate_init.inc.c > +++ b/target/ppc/translate_init.inc.c > @@ -10736,6 +10736,8 @@ static void ppc_cpu_reset(CPUState *s) > /* tininess for underflow is detected before rounding */ > set_float_detect_tininess(float_tininess_before_rounding, >>fp_status); > +/* hardfloat needs inexact flag already set */ > +env->default_fp_excpt_flags = (cpu->hardfloat ? float_flag_inexact : > 0); > > for (i = 0; i < ARRAY_SIZE(env->spr_cb); i++) { > ppc_spr_t *spr = >spr_cb[i]; > @@ -10868,6 +10870,7 @@ static Property ppc_cpu_properties[] = { > false), > DEFINE_PROP_BOOL("pre-3.0-migration", PowerPCCPU, pre_3_0_migration, > false), > +DEFINE_PROP_BOOL("hardfloat", PowerPCCPU, hardfloat, true), > DEFINE_PROP_END_OF_LIST(), > }; > > -- > 2.21.1 > > > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: About hardfloat in ppc

2020-04-28 Thread Yonggang Luo
On Tue, Apr 28, 2020 at 4:36 PM Alex Bennée wrote: > > 罗勇刚(Yonggang Luo) writes: > > > I am confusing why only inexact are set then we can use hard-float. > > The inexact behaviour of the host hardware may be different from the > guest architecture we are trying

The -icount option document are confusing

2020-04-25 Thread Yonggang Luo
cpu goes to sleep mode and will not advance if no timer is enabled. This behavior give deterministic execution times from the guest point of view. I wanna to know what's the meaning when sleep=on, and what's the meaning when sleep=off -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: About hardfloat in ppc

2020-04-27 Thread Yonggang Luo
writes: > > > On Mon, 27 Apr 2020, Alex Bennée wrote: > >> 罗勇刚(Yonggang Luo) writes: > >>> Because ppc fpu-helper are always clearing float_flag_inexact, > >>> So is that possible to optimize the performance when > float_flag_inexact > >>> are clea

Re: [PATCH RESEND v6 36/36] multi-process: add configure and usage information

2020-04-23 Thread Yonggang Luo
On Thu, Apr 23, 2020 at 11:03 PM Jag Raman wrote: > > > > On Apr 23, 2020, at 9:54 AM, 罗勇刚(Yonggang Luo) > wrote: > > > > Does multi-process support on Windows? > > I found it use mmap and unix socket for inter-process communication, > that may not support un

Re: [PATCH RESEND v6 36/36] multi-process: add configure and usage information

2020-04-23 Thread Yonggang Luo
1,threads=1', > \ > + '-m', '2048', > \ > + '-object', 'memory-backend-memfd,id=sysmem-file,size=2G', > \ > + '-numa', 'node,memdev=sysmem-file', > \ > + '-device', 'virtio-scsi-pci,id=virtio_scsi_pci0', > \ > + '-drive', 'id=drive_image1,if=none,format=qcow2,' > \ > +'file=/home/ol7-hdd-1.qcow2', > \ > + '-device', 'scsi-hd,id=image1,drive=drive_image1,' > \ > + 'bus=virtio_scsi_pci0.0', > \ > + '-boot', 'd', > \ > + '-vnc', ':0', > \ > + '-device', > 'pci-proxy-dev,id=lsi1,socket='+str(proxy.fileno()), \ > + '-device', > 'pci-proxy-dev,id=lsi2,socket='+str(proxy.fileno()) \ > +] > + > + > +pid = os.fork(); > + > +if pid: > +# In Proxy > +print('Launching QEMU with Proxy object'); > +process = subprocess.Popen(proxy_cmd, pass_fds=[proxy.fileno()]) > +else: > +# In remote > +print('Launching Remote process'); > +process = subprocess.Popen(remote_cmd, pass_fds=[remote.fileno()]) > -- > 2.25.GIT > > > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: About hardfloat in ppc

2020-04-30 Thread Yonggang Luo
od idea. > > > -Messaggio originale- > > Da: BALATON Zoltan > > Inviato: giovedì 30 aprile 2020 17:36 > > A: 罗勇刚(Yonggang Luo) > > Cc: Richard Henderson ; Dino Papararo < > skizzat...@msn.com>; qemu-devel@nongnu.org; Programmingkid < > programmin

Re: R: About hardfloat in ppc

2020-04-29 Thread Yonggang Luo
path when we know we are using normal numbers. > > > > > A little of documentation here: > http://mirror.informatimago.com/next/developer.apple.com/documentation/mac/PPCNumerics/PPCNumerics-154.html > > > > Regards, > > Dino Papararo > > > > -Messaggio originale

Re: About hardfloat in ppc

2020-05-01 Thread Yonggang Luo
On Fri, May 1, 2020 at 7:58 PM BALATON Zoltan wrote: > On Fri, 1 May 2020, 罗勇刚(Yonggang Luo) wrote: > > That's what I suggested, > > We preserve a float computing cache > > typedef struct FpRecord { > > uint8_t op; > > float32 A; > > float32 B; >

An first try to improve PPC float simulation, not even compiled. Just ask question.

2020-05-01 Thread Yonggang Luo
us can not represent all the Invalid Operation Exception flags. What I need to do to represent all the Invalid Operation Exception -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: An first try to improve PPC float simulation, not even compiled. Just ask question.

2020-05-01 Thread Yonggang Luo
>From b4d6ca1d6376fab1f1be06eb472e10b908887c2b Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sat, 2 May 2020 05:59:25 +0800 Subject: [PATCH] [ppc fp] Step 1. Rearrange the fp helpers to eliminate helper_reset_fpstatus(). I've mentioned this before, that it's possible to leave the ste

Re: About hardfloat in ppc

2020-05-01 Thread Yonggang Luo
On Sat, May 2, 2020 at 12:51 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 5/1/20 9:29 AM, 罗勇刚(Yonggang Luo) wrote: > > On Fri, May 1, 2020 at 10:18 PM Richard Henderson < > richard.hender...@linaro.org > > Step 1 is to rearrange

Re: An first try to improve PPC float simulation, not even compiled. Just ask question.

2020-05-03 Thread Yonggang Luo
Hello Richard, Can you have a look at the following patch, and was that are the right direction? >From b4d6ca1d6376fab1f1be06eb472e10b908887c2b Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sat, 2 May 2020 05:59:25 +0800 Subject: [PATCH] [ppc fp] Step 1. Rearrange the fp helpers to elimin

Re: An first try to improve PPC float simulation, not even compiled. Just ask question.

2020-05-03 Thread Yonggang Luo
On Mon, May 4, 2020 at 7:40 AM BALATON Zoltan wrote: > Hello, > > On Mon, 4 May 2020, 罗勇刚(Yonggang Luo) wrote: > > Hello Richard, Can you have a look at the following patch, and was that > are > > the right direction? > > Formatting of the patch is brok

Re: [PATCH for-5.1 V3 0/7] mips: Add Loongson-3 machine support (with KVM)

2020-05-04 Thread Yonggang Luo
t > needs a very long time to complete. > > Huacai > > On Sun, May 3, 2020 at 6:42 PM 罗勇刚(Yonggang Luo) > wrote: > > > > The english version of the reference document is hard to head. > > I suggest first convert the chinese version into markdown or alte

Re: [PATCH] ppc: Use hard-float in ppc fp_hlper as early as possible. This would increase the performance better than enable hard-float it in soft-float.c; Just using fadd fsub fmul fdiv as a simple b

2020-05-04 Thread Yonggang Luo
n 0; } ``` On Tue, May 5, 2020 at 3:30 AM wrote: > From: Yonggang Luo > > Just post as an idea to improve PPC fp performance. > With this idea, we have no need to adjust the helper orders. > > Signed-off-by: Yonggang Luo > --- > target/ppc/fpu_helper.c | 44 +

About hardfloat in ppc

2020-04-27 Thread Yonggang Luo
Because ppc fpu-helper are always clearing float_flag_inexact, So is that possible to optimize the performance when float_flag_inexact are cleared? -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

I've seen you are trying to add hardfloat support in qemu? Does it have any progress now?

2020-04-26 Thread Yonggang Luo
I am interesting doing some help in this area. -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: R: R: About hardfloat in ppc

2020-04-29 Thread Yonggang Luo
if > > instruction requires precision/error check process it in softfloats. > > Sure but someone will have to do the work to support that. > > -- > Alex Bennée > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: R: R: About hardfloat in ppc

2020-04-30 Thread Yonggang Luo
On Thu, Apr 30, 2020 at 10:18 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 4/29/20 5:20 PM, 罗勇刚(Yonggang Luo) wrote: > > Question, in hard-float, if we don't want to read the fp register. > > for example: If we wanna compute c = a + b in fp32 > >

Re: R: R: About hardfloat in ppc

2020-04-30 Thread Yonggang Luo
< richard.hender...@linaro.org> wrote: > On 4/29/20 5:20 PM, 罗勇刚(Yonggang Luo) wrote: > > Question, in hard-float, if we don't want to read the fp register. > > for example: If we wanna compute c = a + b in fp32 > > if c = a + b In hard float > > and if b1 = c - a in har

Re: R: About hardfloat in ppc

2020-04-29 Thread Yonggang Luo
g normal numbers. > > > > > A little of documentation here: > http://mirror.informatimago.com/next/developer.apple.com/documentation/mac/PPCNumerics/PPCNumerics-154.html > > > > Regards, > > Dino Papararo > > > > -Messaggio originale- >

Re: [PATCH RESEND v6 36/36] multi-process: add configure and usage information

2020-04-23 Thread Yonggang Luo
On Thu, Apr 23, 2020 at 11:03 PM Jag Raman wrote: > > > > On Apr 23, 2020, at 9:54 AM, 罗勇刚(Yonggang Luo) > wrote: > > > > Does multi-process support on Windows? > > I found it use mmap and unix socket for inter-process communication, > that may not support un

Re: [Bug 1877015] [NEW] virtio only support packed ring size power of 2 between 256 and 1024

2020-05-05 Thread Yonggang Luo
gt; > To manage notifications about this bug go to: > https://bugs.launchpad.net/qemu/+bug/1877015/+subscriptions > > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

POWERPC_EXCP_PROGRAM POWERPC_EXCP_INVAL in PowerPC simulation.

2020-03-21 Thread Yonggang Luo
060 (21) -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: About hardfloat in ppc

2020-05-01 Thread Yonggang Luo
On Fri, May 1, 2020 at 10:18 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 5/1/20 6:10 AM, Alex Bennée wrote: > > > > 罗勇刚(Yonggang Luo) writes: > > > >> On Fri, May 1, 2020 at 7:58 PM BALATON Zoltan > wrote: > >> &

Re: About hardfloat in ppc

2020-05-01 Thread Yonggang Luo
On Fri, May 1, 2020 at 10:18 PM Richard Henderson < richard.hender...@linaro.org> wrote: > On 5/1/20 6:10 AM, Alex Bennée wrote: > > > > 罗勇刚(Yonggang Luo) writes: > > > >> On Fri, May 1, 2020 at 7:58 PM BALATON Zoltan > wrote: > >> &

Re: [PATCH for-5.1 V3 0/7] mips: Add Loongson-3 machine support (with KVM)

2020-05-03 Thread Yonggang Luo
ips/kvm.c| 212 + > target/mips/machine.c | 6 +- > target/mips/mips-defs.h | 7 +- > target/mips/translate.c | 2 + > target/mips/translate_init.inc.c | 86 > 18 files changed, 1300 insertions(+), 9 deletions(-) > create mode 100644 hw/mips/common.c > create mode 100644 hw/mips/mips_loongson3.c > -- > 2.7.0 > > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

[PATCH 0/2] patches that getting msys2 working with cirrus

2020-09-03 Thread Yonggang Luo
These patches also enable the make check by ignore the tests errors, so the CI can be passed. Yonggang Luo (2): tests: try to disable make check blocker for msys2 ci: Enable msys2 ci in cirrus .cirrus.yml | 24 + scripts/ci/windows/msys2_build.sh

[PATCH 2/2] ci: Enable msys2 ci in cirrus

2020-09-03 Thread Yonggang Luo
we using environment variable settings: MSYS: winsymlinks:nativestrict MSYSTEM: MINGW64 CHERE_INVOKING: 1 to opening mingw64 native shell. We now running tests with make -i check to skip tests errors. Signed-off-by: Yonggang Luo --- .cirrus.yml | 24

[PATCH 1/2] tests: try to disable make check blocker for msys2

2020-09-03 Thread Yonggang Luo
tests/test-char are stuck forever on msys2, disable it first Signed-off-by: Yonggang Luo --- tests/Makefile.include | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Makefile.include b/tests/Makefile.include index 497f1f21ff..c645e8972a 100644 --- a/tests/Makefile.include +++ b/tests

[PATCH] docker: Add win32/msys2/mingw64 docker

2020-09-03 Thread Yonggang Luo
Signed-off-by: Yonggang Luo --- tests/docker/dockerfiles/msys2.docker | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 tests/docker/dockerfiles/msys2.docker diff --git a/tests/docker/dockerfiles/msys2.docker b/tests/docker/dockerfiles/msys2.docker new file mode 100644

[PATCH 0/2] Try fixes test-replication.c running on msys2/mingw

2020-09-05 Thread Yonggang Luo
Unexpected error in bdrv_reopen_prepare() at ../block.c:4191: Block format 'file' used by node '#block4251' does not support reopening files Yonggang Luo (2): tests: Trying fixes test-replication.c on msys2/mingw. block: get file-win32.c handle locking option consistence with file-posix.c

[PATCH 2/2] block: get file-win32.c handle locking option consistence with file-posix.c

2020-09-05 Thread Yonggang Luo
Signed-off-by: Yonggang Luo --- block/file-win32.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/block/file-win32.c b/block/file-win32.c index ab69bd811a..14e5f5c3b5 100644 --- a/block/file-win32.c +++ b/block/file-win32.c @@ -299,6 +299,11

[PATCH 1/2] tests: Trying fixes test-replication.c on msys2/mingw.

2020-09-05 Thread Yonggang Luo
On Windows there is no path like /tmp/s_local_disk.XX Signed-off-by: Yonggang Luo --- tests/test-replication.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/test-replication.c b/tests/test-replication.c index 9ab3666a90..3cf544a133 100644

[PATCH] configure: Fixes ncursesw detection under msys2/mingw and enable curses

2020-09-05 Thread Yonggang Luo
4 | #include | ^~~~ compilation terminated. Signed-off-by: Yonggang Luo --- configure | 9 +++-- ui/curses.c | 9 - 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/configure b/configure index f8cbd2898c..2dc25bda69 100755 --- a/configure

[PATCH] meson: Fixes qapi tests.

2020-09-05 Thread Yonggang Luo
Use -b to ignore-space-change The error are: +@end table + +@end deftypefn + make: *** [Makefile.mtest:63: check-qapi-schema] Error 1 Signed-off-by: Yonggang Luo --- tests/qapi-schema/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qapi-schema/meson.build

[PATCH] tests: Fixes building test-util-filemonitor.c on msys2/mingw

2020-09-05 Thread Yonggang Luo
int __cdecl mkdir (const char *) __MINGW_ATTRIB_DEPRECATED_MSVC2005; | ^ Signed-off-by: Yonggang Luo --- tests/test-util-filemonitor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test-util-filemonitor.c b/tests/test-util-filemonitor.c in

tests/test-char.exe are blocked by char_stdio_test_subprocess are blocked

2020-09-05 Thread Yonggang Luo
and the process won't finishe -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: [PATCH] tests: fixes test-vmstate.c compile error on msys2

2020-09-05 Thread Yonggang Luo
On Sat, Sep 5, 2020 at 4:48 PM Thomas Huth wrote: > On 05/09/2020 08.38, Yonggang Luo wrote: > > ../tests/test-vmstate.c: In function 'int_cmp': > > ../tests/test-vmstate.c:884:5: error: unknown type name 'uint'; did you > mean 'uInt'? > > 884 | ui

Re: [PATCH v2] tests: Trying fixes test-replication.c on msys2.

2020-09-04 Thread Yonggang Luo
On Fri, Sep 4, 2020 at 9:07 PM Thomas Huth wrote: > On 04/09/2020 00.06, Yonggang Luo wrote: > > Signed-off-by: Yonggang Luo > > --- > > tests/test-replication.c | 17 + > > 1 file changed, 13 insertions(+), 4 deletions(-) > > > > diff -

[PATCH v5 05/11] ci: Enable msys2 ci in cirrus

2020-09-05 Thread Yonggang Luo
we using environment variable settings: MSYS: winsymlinks:nativestrict MSYSTEM: MINGW64 CHERE_INVOKING: 1 to opening mingw64 native shell. We now running tests with make -i check to skip tests errors. Signed-off-by: Yonggang Luo --- .cirrus.yml | 24

[PATCH v5 10/11] docker: Add win32/msys2/mingw64 docker

2020-09-05 Thread Yonggang Luo
Signed-off-by: Yonggang Luo --- tests/docker/dockerfiles/msys2.docker | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 tests/docker/dockerfiles/msys2.docker diff --git a/tests/docker/dockerfiles/msys2.docker b/tests/docker/dockerfiles/msys2.docker new file mode 100644

Re: [PATCH] stubs: Move qemu_timer_notify_cb() and remove qemu_notify_event() stub

2020-09-05 Thread Yonggang Luo
t; @@ -1,6 +0,0 @@ > > -#include "qemu/osdep.h" > > -#include "qemu/main-loop.h" > > - > > -void qemu_notify_event(void) > > -{ > > -} > > diff --git a/stubs/qemu-timer-notify-cb.c b/stubs/qemu-timer-notify-cb.c > > new file mode 100644 > > index 00..054b408b1c > > --- /dev/null > > +++ b/stubs/qemu-timer-notify-cb.c > > @@ -0,0 +1,8 @@ > > +#include "qemu/osdep.h" > > +#include "sysemu/cpus.h" > > +#include "qemu/main-loop.h" > > + > > +void qemu_timer_notify_cb(void *opaque, QEMUClockType type) > > +{ > > +qemu_notify_event(); > > +} > > > > Acked-by: Paolo Bonzini > LGTM, can you queue this patch, -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

[PATCH v5 09/11] meson: Fixes qapi tests.

2020-09-05 Thread Yonggang Luo
The error are: +@end table + +@end deftypefn + make: *** [Makefile.mtest:63: check-qapi-schema] Error 1 Signed-off-by: Yonggang Luo --- tests/qapi-schema/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/qapi-schema/meson.build b/tests/qapi-schema

Re: [PATCH v5 04/11] meson: upgrade meson for execute custom ninjatool under msys2 properly

2020-09-05 Thread Yonggang Luo
On Sat, Sep 5, 2020 at 9:44 PM Paolo Bonzini wrote: > On 05/09/20 08:23, Yonggang Luo wrote: > > The ninja options now have no need anymore. > > > > Signed-off-by: Yonggang Luo > > --- > > meson | 2 +- > > 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH] configure: the error info not consistence with option.

2020-09-04 Thread Yonggang Luo
On Fri, Sep 4, 2020 at 3:54 PM Paolo Bonzini wrote: > On 04/09/20 05:54, 罗勇刚(Yonggang Luo) wrote: > > > > test "$vhost_net_user" = "" && vhost_net_user=$vhost_user > > if test "$vhost_net_user" = "yes" &am

[PATCH v5 07/11] block: get file-win32.c handle locking option consistence with file-posix.c

2020-09-05 Thread Yonggang Luo
Signed-off-by: Yonggang Luo --- block/file-win32.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/block/file-win32.c b/block/file-win32.c index ab69bd811a..14e5f5c3b5 100644 --- a/block/file-win32.c +++ b/block/file-win32.c @@ -299,6 +299,11

[PATCH v5 11/11] ci: Enable Github actions.

2020-09-05 Thread Yonggang Luo
Signed-off-by: Yonggang Luo --- .github/workflows/main.yml| 31 +++ scripts/ci/windows/msys2-download.bat | 4 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/main.yml create mode 100644 scripts/ci/windows/msys2-download.bat

Re: [PATCH v5 03/11] ci: fixes msys2 build by upgrading capstone to 4.0.2

2020-09-05 Thread Yonggang Luo
On Sat, Sep 5, 2020 at 7:14 PM Mark Cave-Ayland < mark.cave-ayl...@ilande.co.uk> wrote: > On 05/09/2020 07:23, Yonggang Luo wrote: > > > Signed-off-by: Yonggang Luo > > --- > > capstone | 2 +- > > configure | 2 +- > > 2 files changed, 2 insert

[PATCH v5 08/11] osdep: These function are only available on Non-Win32 system.

2020-09-05 Thread Yonggang Luo
int qemu_lock_fd(int fd, int64_t start, int64_t len, bool exclusive); int qemu_unlock_fd(int fd, int64_t start, int64_t len); int qemu_lock_fd_test(int fd, int64_t start, int64_t len, bool exclusive); bool qemu_has_ofd_lock(void); Signed-off-by: Yonggang Luo --- include/qemu/osdep.h | 2 +- 1

[PATCH v5 02/11] block: Fixes nfs on msys2/mingw

2020-09-05 Thread Yonggang Luo
Signed-off-by: Yonggang Luo --- block/nfs.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/block/nfs.c b/block/nfs.c index 61a249a9fc..34b2cd5708 100644 --- a/block/nfs.c +++ b/block/nfs.c @@ -24,7 +24,9 @@ #include "qemu/os

[PATCH v5 06/11] tests: Trying fixes test-replication.c on msys2.

2020-09-05 Thread Yonggang Luo
Signed-off-by: Yonggang Luo --- tests/test-replication.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/test-replication.c b/tests/test-replication.c index 9ab3666a90..d0e06f8d77 100644 --- a/tests/test-replication.c +++ b/tests/test-replication.c

[PATCH] tests: fixes test-vmstate.c compile error on msys2

2020-09-05 Thread Yonggang Luo
'? 885 | uint ub = GPOINTER_TO_UINT(b); | ^~~~ | uInt make: *** [Makefile.ninja:5461:tests/test-vmstate.exe.p/test-vmstate.c.obj] 错误 1 Signed-off-by: Yonggang Luo --- tests/test-vmstate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test

[PATCH v5 00/11] Green the msys2 CI make

2020-09-05 Thread Yonggang Luo
Also it's fixes issues about make check Yonggang Luo (11): Revert "configure: add --ninja option" block: Fixes nfs on msys2/mingw ci: fixes msys2 build by upgrading capstone to 4.0.2 meson: upgrade meson for execute custom ninjatool under msys2 properly ci: Enable msys2 ci

[PATCH v5 01/11] Revert "configure: add --ninja option"

2020-09-05 Thread Yonggang Luo
This reverts commit 48328880fddf0145bdccc499160fb24dfabfbd41. Signed-off-by: Yonggang Luo --- configure | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/configure b/configure index d3495e107f..5d8bf4d8bb 100755 --- a/configure +++ b/configure @@ -517,7 +517,6

[PATCH v5 03/11] ci: fixes msys2 build by upgrading capstone to 4.0.2

2020-09-05 Thread Yonggang Luo
Signed-off-by: Yonggang Luo --- capstone | 2 +- configure | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/capstone b/capstone index 22ead3e0bf..1d23053284 16 --- a/capstone +++ b/capstone @@ -1 +1 @@ -Subproject commit 22ead3e0bfdb87516656453336160e0a37b066bf

[PATCH v5 04/11] meson: upgrade meson for execute custom ninjatool under msys2 properly

2020-09-05 Thread Yonggang Luo
The ninja options now have no need anymore. Signed-off-by: Yonggang Luo --- meson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson b/meson index 68ed748f84..492afe50a4 16 --- a/meson +++ b/meson @@ -1 +1 @@ -Subproject commit 68ed748f84f14c2d4e62dcbd123816e5898eb04c

Re: make -i check resut for msys2

2020-09-05 Thread Yonggang Luo
On Fri, Sep 4, 2020 at 4:51 PM Kevin Wolf wrote: > Am 04.09.2020 um 08:03 hat Thomas Huth geschrieben: > > On 04/09/2020 00.53, 罗勇刚(Yonggang Luo) wrote: > > > > > > > > > On Thu, Sep 3, 2020 at 10:33 PM Thomas Huth > > <mailto:th...@redhat.com>&

Re: [PATCH 1/2] tests: Trying fixes test-replication.c on msys2/mingw.

2020-09-06 Thread Yonggang Luo
On Sun, Sep 6, 2020 at 5:49 AM Stefan Weil wrote: > Am 05.09.20 um 23:10 schrieb Yonggang Luo: > > > On Windows there is no path like /tmp/s_local_disk.XX > > > > Signed-off-by: Yonggang Luo > > --- > > tests/test-replication.c | 13 + >

Re: [PATCH v4 03/12] tcg: Fixes dup_const link error

2020-09-03 Thread Yonggang Luo
On Fri, Sep 4, 2020 at 1:20 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 9/3/20 1:31 AM, Yonggang Luo wrote: > > Rename function dup_const to dup_const_eval for avoid confliction with > macro dup_const > > > > The link error on msys2 >

[PATCH] configure: the error info not consistence with option.

2020-09-03 Thread Yonggang Luo
Signed-off-by: Yonggang Luo --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index e42d210e5f..ae63c4fd54 100755 --- a/configure +++ b/configure @@ -2545,7 +2545,7 @@ fi # vhost-user backends test "$vhost_net_user" = "&quo

Re: make -i check resut for msys2

2020-09-03 Thread Yonggang Luo
On Thu, Sep 3, 2020 at 10:33 PM Thomas Huth wrote: > On 03/09/2020 11.18, 罗勇刚(Yonggang Luo) wrote: > [...] > > TESTcheck-unit: tests/test-replication.exe > > ** > > ERROR:C:/work/xemu/qemu/tests/test-replication.c:136:make_temp: > > assertion fa

[PATCH v2] tests: Trying fixes test-replication.c on msys2.

2020-09-03 Thread Yonggang Luo
Signed-off-by: Yonggang Luo --- tests/test-replication.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/test-replication.c b/tests/test-replication.c index 9ab3666a90..d0e06f8d77 100644 --- a/tests/test-replication.c +++ b/tests/test-replication.c

Re: [PULL v2 00/46] Next round of Meson bugfixes and cleanups

2020-09-06 Thread Yonggang Luo
mon.c:68: > undefined reference to `__ubsan_handle_type_mismatch_v1' > /home/petmay01/linaro/qemu-for-merges/build/clang/../../cpus-common.c:67: > undefined reference to `__ubsan_handle_type_mismatch_v1' > > libcommon.fa.p/cpus-common.c.o:/home/petmay01/linaro/qemu-for-merges/build/clang/../../cpus-common.c:67: > more undefined references to `__ubsan_handle_type_mismatch_v1' follow > collect2: error: ld returned 1 exit status > > thanks > -- PMM > > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: [PATCH v5 09/11] meson: Fixes qapi tests.

2020-09-06 Thread Yonggang Luo
On Sat, Sep 5, 2020 at 4:42 PM Thomas Huth wrote: > On 05/09/2020 08.23, Yonggang Luo wrote: > > The error are: > > +@end table > > + > > +@end deftypefn > > + > > make: *** [Makefile.mtest:63: check-qapi-schema] Error 1 > > > > Signed-o

Re: [PATCH] configure: Fixes ncursesw detection under msys2/mingw and enable curses

2020-09-06 Thread Yonggang Luo
On Sun, Sep 6, 2020 at 11:28 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 9/5/20 1:42 PM, Yonggang Luo wrote: > > +nativecharset_to_ucs2 = iconv_open("UCS-2", g_get_codeset()); > > g_get_codeset(): > "a newly allocated string c

[PATCH v3] configure: Fixes ncursesw detection under msys2/mingw and enable curses

2020-09-06 Thread Yonggang Luo
4 | #include | ^~~~ compilation terminated. Signed-off-by: Yonggang Luo --- configure | 9 +++-- ui/curses.c | 10 +- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/configure b/configure index f8cbd2898c..2dc25bda69 100755 --- a/configure

[PATCH v2] configure: Fixes ncursesw detection under msys2/mingw and enable curses

2020-09-06 Thread Yonggang Luo
4 | #include | ^~~~ compilation terminated. Signed-off-by: Yonggang Luo --- configure | 9 +++-- ui/curses.c | 10 +- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/configure b/configure index f8cbd2898c..2dc25bda69 100755 --- a/configure

Re: [PATCH] tests: fixes test-vmstate.c compile error on msys2

2020-09-06 Thread Yonggang Luo
Bonzini, you need have a look at this On Sat, Sep 5, 2020 at 2:38 PM Yonggang Luo wrote: > ../tests/test-vmstate.c: In function 'int_cmp': > ../tests/test-vmstate.c:884:5: error: unknown type name 'uint'; did you > mean 'uInt'? > 884 | uint ua = GPOI

Re: [PATCH] configure: the error info not consistence with option.

2020-09-03 Thread Yonggang Luo
gt; > test "$vhost_crypto" = "" && vhost_crypto=$vhost_user >> if test "$vhost_crypto" = "yes" && test "$vhost_user" = "no"; then >> -- >> 2.28.0.windows.1 >> >> -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

[PATCH 2/6] meson: Convert undefsym.sh to undefsym.py

2020-09-02 Thread Yonggang Luo
undefsym.sh are not msys2 compatible, convert it to python script Signed-off-by: Yonggang Luo --- meson.build | 2 +- scripts/undefsym.py | 57 + scripts/undefsym.sh | 20 3 files changed, 58 insertions(+), 21 deletions

Re: [PATCH 6/6] configure: Fix include and linkage issue on msys2

2020-09-02 Thread Yonggang Luo
I am OK with that, I just need to this make the CI green, once your patch upstream, I'll drop this On Thu, Sep 3, 2020 at 1:05 AM Paolo Bonzini wrote: > On 02/09/20 19:00, Yonggang Luo wrote: > > On msys2, the -I/e/path/to/qemu -L/e/path/to/qemu are not recognized by > the compil

Re: [PATCH 4/6] tcg: Fixes dup_const link error

2020-09-02 Thread Yonggang Luo
Win32 gcc 10 mingw On Thu, Sep 3, 2020 at 1:16 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 9/2/20 10:00 AM, Yonggang Luo wrote: > > Rename function dup_const to dup_const_eval for avoid confliction with > macro dup_const > > > > The link error o

[PATCH 0/6] Green the msys2 CI make

2020-09-02 Thread Yonggang Luo
Also it's fixes two issue about make check Yonggang Luo (6): configure: fixes dtc not cloned when running msys2 CI meson: Convert undefsym.sh to undefsym.py ci: Install msys2 in a proper way refer to https://github.com/cirruslabs/cirrus-ci-docs/issues/699 Enable msys2 ci in cirrus

[PATCH 3/6] ci: Install msys2 in a proper way refer to https://github.com/cirruslabs/cirrus-ci-docs/issues/699 Enable msys2 ci in cirrus

2020-09-02 Thread Yonggang Luo
--- .cirrus.yml | 23 scripts/ci/windows/msys2_build.sh | 35 scripts/ci/windows/msys2_install.sh | 41 + 3 files changed, 99 insertions(+) create mode 100644 scripts/ci/windows/msys2_build.sh create

[PATCH 1/6] configure: fixes dtc not cloned when running msys2 CI

2020-09-02 Thread Yonggang Luo
Symlink dtc after git submodule update, because on win32 symlink to non-exist folder are forbidden. Signed-off-by: Yonggang Luo --- configure | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 8a3acef89d..30f8c4db29 100755

[PATCH 5/6] tests: handling signal on win32 properly

2020-09-02 Thread Yonggang Luo
-by: Yonggang Luo --- tests/test-replication.c | 4 1 file changed, 4 insertions(+) diff --git a/tests/test-replication.c b/tests/test-replication.c index e0b03dafc2..9ab3666a90 100644 --- a/tests/test-replication.c +++ b/tests/test-replication.c @@ -554,6 +554,9 @@ static void

[PATCH 4/6] tcg: Fixes dup_const link error

2020-09-02 Thread Yonggang Luo
: in function `tcg_gen_dupi_vec': E:\CI-Cor-Ready\xemu\qemu-build/../qemu.org/tcg/tcg-op-vec.c:283: undefined reference to `dup_const' collect2.exe: error: ld returned 1 exit status Signed-off-by: Yonggang Luo --- include/tcg/tcg.h | 6 +++--- tcg/tcg-op-gvec.c | 2 +- 2 files changed, 4

Re: [PATCH 5/6] tests: handling signal on win32 properly

2020-09-02 Thread Yonggang Luo
OK, waiting for it upstream. On Thu, Sep 3, 2020 at 1:04 AM Paolo Bonzini wrote: > On 02/09/20 19:00, Yonggang Luo wrote: > > SIGABRT should use signal(SIGABRT, sigabrt_handler) to handle on win32 > > > > The error: > > E:/CI-Cor-Ready/xemu/qemu.org/tests/test-

[PATCH 6/6] configure: Fix include and linkage issue on msys2

2020-09-02 Thread Yonggang Luo
. So we replace all $PWD with $build_path that can building qemu under msys2/mingw environment. Signed-off-by: Yonggang Luo --- configure | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/configure b/configure index 30f8c4db29..5f2bcc4b57 100755

Re: [PATCH 3/6] ci: Install msys2 in a proper way refer to https://github.com/cirruslabs/cirrus-ci-docs/issues/699 Enable msys2 ci in cirrus

2020-09-02 Thread Yonggang Luo
On Thu, Sep 3, 2020 at 1:30 AM Philippe Mathieu-Daudé wrote: > On 9/2/20 7:00 PM, Yonggang Luo wrote: > > --- > > .cirrus.yml | 23 > > scripts/ci/windows/msys2_build.sh | 35 > > scripts/ci/wi

Re: [PATCH 3/6] ci: Install msys2 in a proper way refer to https://github.com/cirruslabs/cirrus-ci-docs/issues/699 Enable msys2 ci in cirrus

2020-09-02 Thread Yonggang Luo
On Thu, Sep 3, 2020 at 1:30 AM Philippe Mathieu-Daudé wrote: > On 9/2/20 7:00 PM, Yonggang Luo wrote: > > --- > > .cirrus.yml | 23 > > scripts/ci/windows/msys2_build.sh | 35 > > scripts/ci/wi

QAPI, The msys2 CI check are compiled sucess, but qapi tests are failing

2020-09-02 Thread Yonggang Luo
https://cirrus-ci.com/task/5708273301061632?command=main#L6792 make: *** [Makefile.mtest:63: check-qapi-schema] Error 1 -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: [PATCH 3/6] ci: Install msys2 in a proper way refer to https://github.com/cirruslabs/cirrus-ci-docs/issues/699 Enable msys2 ci in cirrus

2020-09-02 Thread Yonggang Luo
On Thu, Sep 3, 2020 at 3:13 AM Mark Cave-Ayland < mark.cave-ayl...@ilande.co.uk> wrote: > On 02/09/2020 20:01, 罗勇刚(Yonggang Luo) wrote: > > > Yes indeed, it looks like a very comprehensive build :) Note that > with the meson > > build I no longer have to

Re: [PATCH 3/6] ci: Install msys2 in a proper way refer to https://github.com/cirruslabs/cirrus-ci-docs/issues/699 Enable msys2 ci in cirrus

2020-09-02 Thread Yonggang Luo
On Thu, Sep 3, 2020 at 2:55 AM Mark Cave-Ayland < mark.cave-ayl...@ilande.co.uk> wrote: > On 02/09/2020 18:50, 罗勇刚(Yonggang Luo) wrote: > > > On Thu, Sep 3, 2020 at 1:30 AM Philippe Mathieu-Daudé > <mailto:f4...@amsat.org>> wrote: > > > >

new msys2 testing failure, does this fixe? undefined reference to `qemu_lock_fd_test'

2020-09-02 Thread Yonggang Luo
to `qemu_has_ofd_lock' 5569collect2.exe: error: ld returned 1 exit status 5570make: *** [D:/a/qemu/qemu/rules.mak:88: tests/test-image-locking.exe] Error 1 5571make: *** Waiting for unfinished jobs -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

Re: new msys2 testing failure, does this fixe? undefined reference to `qemu_lock_fd_test'

2020-09-02 Thread Yonggang Luo
On Thu, Sep 3, 2020 at 3:33 AM Thomas Huth wrote: > On 02/09/2020 21.13, 罗勇刚(Yonggang Luo) wrote: > > > > > C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: > > tests/test-image-locking.o: in function `check_

[PATCH] osdep: These function are only available on Non-Win32 system.

2020-09-02 Thread Yonggang Luo
int qemu_lock_fd(int fd, int64_t start, int64_t len, bool exclusive); int qemu_unlock_fd(int fd, int64_t start, int64_t len); int qemu_lock_fd_test(int fd, int64_t start, int64_t len, bool exclusive); bool qemu_has_ofd_lock(void); --- include/qemu/osdep.h | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 5/9] configure: Fix include and linkage issue on msys2

2020-09-02 Thread Yonggang Luo
. So we replace all $PWD with $build_path that can building qemu under msys2/mingw environment. Signed-off-by: Yonggang Luo --- configure | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/configure b/configure index 30f8c4db29..5f2bcc4b57 100755

[PATCH v2 4/9] tests: handling signal on win32 properly

2020-09-02 Thread Yonggang Luo
-by: Yonggang Luo --- tests/test-replication.c | 4 1 file changed, 4 insertions(+) diff --git a/tests/test-replication.c b/tests/test-replication.c index e0b03dafc2..9ab3666a90 100644 --- a/tests/test-replication.c +++ b/tests/test-replication.c @@ -554,6 +554,9 @@ static void

[PATCH v2 2/9] meson: Convert undefsym.sh to undefsym.py

2020-09-02 Thread Yonggang Luo
undefsym.sh are not msys2 compatible, convert it to python script Signed-off-by: Yonggang Luo --- meson.build | 2 +- scripts/undefsym.py | 57 + scripts/undefsym.sh | 20 3 files changed, 58 insertions(+), 21 deletions

[PATCH] block: Fixes nfs on msys2/mingw

2020-09-02 Thread Yonggang Luo
--- block/nfs.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/block/nfs.c b/block/nfs.c index 61a249a9fc..34b2cd5708 100644 --- a/block/nfs.c +++ b/block/nfs.c @@ -24,7 +24,9 @@ #include "qemu/osdep.h" +#if !defined(_WIN32) #include +#endif

Re: [PATCH 3/6] ci: Install msys2 in a proper way refer to https://github.com/cirruslabs/cirrus-ci-docs/issues/699 Enable msys2 ci in cirrus

2020-09-02 Thread Yonggang Luo
so I will use any possible toolchain, and you may not use it at all. > > ATB, > > Mark. > -- 此致 礼 罗勇刚 Yours sincerely, Yonggang Luo

  1   2   3   4   5   6   7   8   >