Re: [Xen-devel] [admin] [Pkg-xen-devel] [BUG] task jbd2/xvda4-8:174 blocked for more than 120 seconds.

2019-06-01 Thread Samuel Thibault
Hello, Dongli Zhang, le lun. 18 févr. 2019 08:09:56 +0800, a ecrit: > On 2/18/19 5:29 AM, Samuel Thibault wrote: > >>>>> On 2/10/19 12:35 AM, Samuel Thibault wrote: > >>>>>> Oh! That could be it indeed. I'm wondering what could be monopolizing >

[Xen-devel] Fwd: [BUG] task jbd2/xvda4-8:174 blocked for more than 120 seconds.

2019-02-08 Thread Samuel Thibault
From: Sacha To: xen-de...@lists.xen.org Subject: [admin] [BUG] task jbd2/xvda4-8:174 blocked for more than 120 seconds. Hi, On  Debian GNU/Linux 9.7 (stretch) amd64, we have a bug on the last Xen Hypervisor version: xen-hypervisor-4.8-amd64 4.8.5+shim4.10.2+xsa282 The rollback on the previ

[Xen-devel] Fwd: [BUG] task jbd2/xvda4-8:174 blocked for more than 120 seconds.

2019-02-08 Thread Samuel Thibault
From: Samuel Thibault To: xen-de...@lists.xen.org, x...@packages.debian.org Subject: Re: [admin] [BUG] task jbd2/xvda4-8:174 blocked for more than 120 seconds. Hello, Sacha, le ven. 08 févr. 2019 18:00:22 +0100, a ecrit: > On  Debian GNU/Linux 9.7 (stretch) amd64, we have a bug on the last

Re: [Xen-devel] [admin] [Pkg-xen-devel] [BUG] task jbd2/xvda4-8:174 blocked for more than 120 seconds.

2019-02-08 Thread Samuel Thibault
; Apparently, > x...@packages.debian.org > results in a message to > pkg-xen-de...@lists.alioth.debian.org Yes, since that's the maintainer of the package. > On 2/8/19 6:13 PM, Samuel Thibault wrote: > > > > Sacha, le ven. 08 févr. 2019 18:00:22 +0100, a ecrit: > >> On  D

Re: [Xen-devel] [admin] [BUG] task jbd2/xvda4-8:174 blocked for more than 120 seconds.

2019-02-08 Thread Samuel Thibault
Hello, Sacha, le ven. 08 févr. 2019 18:00:22 +0100, a ecrit: > On  Debian GNU/Linux 9.7 (stretch) amd64, we have a bug on the last Xen > Hypervisor version: > > xen-hypervisor-4.8-amd64 4.8.5+shim4.10.2+xsa282 (Read: 4.8.5+shim4.10.2+xsa282-1+deb9u11) > The rollback on the previous package

Re: [Xen-devel] [admin] [Pkg-xen-devel] [BUG] task jbd2/xvda4-8:174 blocked for more than 120 seconds.

2019-02-09 Thread Samuel Thibault
Hello, Hans van Kranenburg, le sam. 09 févr. 2019 17:01:55 +0100, a ecrit: > > I have forwarded the original mail: all VM I/O get stuck, and thus the > > VM becomes unusable. > > These are in many cases the symptoms of running out of "grant frames". Oh! That could be it indeed. I'm wondering w

Re: [Xen-devel] [admin] [Pkg-xen-devel] [BUG] task jbd2/xvda4-8:174 blocked for more than 120 seconds.

2019-02-11 Thread Samuel Thibault
Hello, Dongli Zhang, le lun. 11 févr. 2019 09:37:43 +0800, a ecrit: > On 2/10/19 12:35 AM, Samuel Thibault wrote: > > Hello, > > > > Hans van Kranenburg, le sam. 09 févr. 2019 17:01:55 +0100, a ecrit: > >>> I have forwarded the original mail: all VM I/O get stu

Re: [Xen-devel] [admin] [Pkg-xen-devel] [BUG] task jbd2/xvda4-8:174 blocked for more than 120 seconds.

2019-02-11 Thread Samuel Thibault
Hans van Kranenburg, le lun. 11 févr. 2019 22:59:11 +0100, a ecrit: > On 2/11/19 2:37 AM, Dongli Zhang wrote: > > > > On 2/10/19 12:35 AM, Samuel Thibault wrote: > >> > >> Hans van Kranenburg, le sam. 09 févr. 2019 17:01:55 +0100, a ecrit: > >>>> I

Re: [Xen-devel] [admin] [Pkg-xen-devel] [BUG] task jbd2/xvda4-8:174 blocked for more than 120 seconds.

2019-02-17 Thread Samuel Thibault
Hello, Dongli Zhang, le mar. 12 févr. 2019 12:11:20 +0800, a ecrit: > On 02/12/2019 06:10 AM, Samuel Thibault wrote: > > Hans van Kranenburg, le lun. 11 févr. 2019 22:59:11 +0100, a ecrit: > >> On 2/11/19 2:37 AM, Dongli Zhang wrote: > >>> > >>>

Re: [Xen-devel] [admin] [Pkg-xen-devel] [BUG] task jbd2/xvda4-8:174 blocked for more than 120 seconds.

2019-02-19 Thread Samuel Thibault
Dongli Zhang, le lun. 18 févr. 2019 08:09:56 +0800, a ecrit: > > > On 2/18/19 5:29 AM, Samuel Thibault wrote: > > Hello, > > > > Dongli Zhang, le mar. 12 févr. 2019 12:11:20 +0800, a ecrit: > >> On 02/12/2019 06:10 AM, Samuel Thibault wrote: > >>&g

Re: [Xen-devel] [PATCH v2 1/8] stubdom/vtpm: include stdio.h for declaration of printf

2019-10-13 Thread Samuel Thibault
Samuel Thibault, le dim. 13 oct. 2019 18:20:39 +0200, a ecrit: > Olaf Hering, le mer. 02 oct. 2019 19:05:36 +0200, a ecrit: > > The function read_vtpmblk uses printf(3), but stdio.h is not included > > in this file. This results in a warning from gcc-7: > > >

Re: [Xen-devel] [PATCH v2 1/8] stubdom/vtpm: include stdio.h for declaration of printf

2019-10-13 Thread Samuel Thibault
ation of > 'printf' > > Signed-off-by: Olaf Hering > cked-by: Daniel De Graaf Reviewed-by: Samuel Thibault > --- > stubdom/vtpm/vtpmblk.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/stubdom/vtpm/vtpmblk.c b/stubdom/vtpm/vtpmblk.c

Re: [Xen-devel] [PATCH v2 1/8] stubdom/vtpm: include stdio.h for declaration of printf

2019-10-13 Thread Samuel Thibault
Olaf Hering, le dim. 13 oct. 2019 18:50:32 +0200, a ecrit: > Am Sun, 13 Oct 2019 18:21:27 +0200 > schrieb Samuel Thibault : > > > > > cked-by: Daniel De Graaf > > > > Note that you miss an 'A' at the beginning of the line there. > > Thanks for

Re: [Xen-devel] [PATCH] stubdom: disable newlib's need for texinfo

2018-07-09 Thread Samuel Thibault
that uses it so > > that the files are never generated. > > > > Signed-off-by: Doug Goldstein > > Acked-by: Wei Liu Reviewed-by: Samuel Thibault ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel

Re: [Xen-devel] [PATCH v1] stubdom/vtpm: fix memcmp in TPM_ChangeAuthAsymFinish

2018-06-18 Thread Samuel Thibault
Olaf Hering, le lun. 18 juin 2018 14:55:36 +0200, a ecrit: > gcc8 spotted this error: > error: 'memcmp' reading 20 bytes from a region of size 8 > [-Werror=stringop-overflow=] > > Signed-off-by: Olaf Hering Indeed! Reviewed-by: Samuel Thibault

Re: [Xen-devel] [PATCH] stubdom/grub.patches: Drop docs changes, for licensing reasons

2018-09-18 Thread Samuel Thibault
b.patches. This > > means that there are now no longer any GFDL-licenced grub docs in > > xen.git. > > > > There is no user impact, and Debian is helped. This change would > > complicate any attempts to update to a new version of upstream grub1, > &g

Re: [Xen-devel] [Minios-devel] [PATCH RFC 01/16] Save/Restore Support: Refactor HYPERVISOR_suspend hypercall

2017-12-19 Thread Samuel Thibault
t; > Signed-off-by: Bruno Alvisio Reviewed-by: Samuel Thibault > --- > include/x86/x86_32/hypercall-x86_32.h | 4 ++-- > include/x86/x86_64/hypercall-x86_64.h | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/include/x86/x86_32/hypercall-x86_32.h

Re: [Xen-devel] [Minios-devel] [PATCH RFC 02/16] Save/Restore Support: Refactor trap_init() and setup vector callbacks

2017-12-19 Thread Samuel Thibault
-off-by: Bruno Alvisio Reviewed-by: Samuel Thibault > --- > arch/x86/traps.c | 17 +++-- > include/x86/os.h | 3 +++ > 2 files changed, 14 insertions(+), 6 deletions(-) > > diff --git a/arch/x86/traps.c b/arch/x86/traps.c > index aa17da3..a7388a5 100644 >

Re: [Xen-devel] [Minios-devel] [PATCH RFC 03/16] Save/Restore Support: Declare kernel and arch pre/post suspend functions

2017-12-19 Thread Samuel Thibault
nvoked to > suspend/resume each of the modules. > > Signed-off-by: Bruno Alvisio Reviewed-by: Samuel Thibault > --- > arch/x86/setup.c | 10 ++ > include/kernel.h | 2 ++ > include/x86/os.h | 4 ++-- > kernel.c | 10 ++ > 4 files changed, 24 ins

Re: [Xen-devel] [Minios-devel] [PATCH RFC 04/16] Save/Restore Support: Add xenbus_release_wait_for_watch

2017-12-19 Thread Samuel Thibault
o Alvisio Reviewed-by: Samuel Thibault > --- > include/xenbus.h | 1 + > xenbus/xenbus.c | 10 +- > 2 files changed, 10 insertions(+), 1 deletion(-) > > diff --git a/include/xenbus.h b/include/xenbus.h > index 12391b9..b2d5072 100644 > --- a/include/xenbus.h > +++

Re: [Xen-devel] [Minios-devel] [PATCH RFC 05/16] Save/Restore Support: Add kernel shutdown logic to shutdown.c

2017-12-19 Thread Samuel Thibault
Bruno Alvisio, on mar. 19 déc. 2017 15:42:00 -0800, wrote: > + * NEC Europe Ltd. PROPRIETARY INFORMATION > + * > + * This software is supplied under the terms of a license agreement > + * or nondisclosure agreement with NEC Europe Ltd. and may not be > + * copied or disclosed except in acc

Re: [Xen-devel] [Minios-devel] [PATCH RFC 00/16] Save/Restore Support for mini-OS PVH

2017-12-19 Thread Samuel Thibault
nd at: > > https://github.com/balvisio/mini-os/tree/feature/mini-os-suspend-support I got commit 3869ff5bf4e88d708fb62c16fbe8eb9c0eee9d45 from there, and you can consider it Reviewed-by: Samuel Thibault Samuel ___ Xen-devel mailing list Xen-devel@lis

Re: [Xen-devel] [Minios-devel] [PATCH RFC 07/16] Save/Restore Support: Add unmap_shared_info

2017-12-19 Thread Samuel Thibault
a_mapping((unsigned > long)HYPERVISOR_shared_info, For coherency, I'd say use shared_info there too. Apart from that, Reviewed-by: Samuel Thibault > +__pte((virt_to_mfn(shared_info)< UVMF_INVLPG)) ) > +{ > +printk("Failed to unmap

Re: [Xen-devel] [Minios-devel] [PATCH RFC 08/16] Save/Restore Support: Add arch_mm_pre|post_suspend

2017-12-19 Thread Samuel Thibault
eplaced with PFNs: > canonicalization. > > PVH guests are auto-translated so no memory operation is needed. > > Signed-off-by: Bruno Alvisio Reviewed-by: Samuel Thibault > --- > arch/x86/mm.c | 14 ++ > include/x86/arch_mm.h | 3 +++ > 2 files chan

Re: [Xen-devel] [Minios-devel] [PATCH RFC 09/16] Save/Restore Support: Disable/enable IRQs during suspend/restore

2017-12-19 Thread Samuel Thibault
Bruno Alvisio, on mar. 19 déc. 2017 15:42:04 -0800, wrote: > Signed-off-by: Bruno Alvisio Reviewed-by: Samuel Thibault > --- > kernel.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel.c b/kernel.c > index 1cd40e8..782eb79 100644 >

Re: [Xen-devel] [Minios-devel] [PATCH RFC 10/16] Save/Restore Support: Add suspend/resume support for timers

2017-12-19 Thread Samuel Thibault
Bruno Alvisio, on mar. 19 déc. 2017 15:42:05 -0800, wrote: > Signed-off-by: Bruno Alvisio > +void resume_time(void) > +{ > +port = bind_virq(VIRQ_TIMER, &timer_handler, NULL); > +unmask_evtchn(port); > +} I'd say rather factorize it with init_time. (you could even just remove the printf

Re: [Xen-devel] [Minios-devel] [PATCH RFC 00/16] Save/Restore Support for mini-OS PVH

2017-12-19 Thread Samuel Thibault
Again, I didn't find patch 11, so I got it from here Bruno Alvisio, on mar. 19 déc. 2017 15:41:55 -0800, wrote: > https://github.com/balvisio/mini-os/tree/feature/mini-os-suspend-support There are indentation oddities bringing spurious hunks. Apart from that, Reviewed-by: Samuel

Re: [Xen-devel] [Minios-devel] [PATCH RFC 12/16] Save/Restore Support: Add support for suspend/restore events.

2017-12-19 Thread Samuel Thibault
Bruno Alvisio, on mar. 19 déc. 2017 15:42:07 -0800, wrote: > Signed-off-by: Bruno Alvisio Reviewed-by: Samuel Thibault > --- > events.c | 5 + > include/events.h | 1 + > kernel.c | 2 ++ > 3 files changed, 8 insertions(+) > > diff --git a/eve

Re: [Xen-devel] [Minios-devel] [PATCH RFC 13/16] Save/Restore Support: Add suspend/restore support for Grant Tables.

2017-12-19 Thread Samuel Thibault
Bruno Alvisio, on mar. 19 déc. 2017 15:42:08 -0800, wrote: > +void suspend_gnttab(void) > +{ > +#ifdef CONFIG_PARAVIRT > +int i; > + > +for (i = 0; i < NR_GRANT_FRAMES; i++) { > +HYPERVISOR_update_va_mapping((unsigned long)(((char *)gnttab_table) > + PAGE_SIZE*i), > +

Re: [Xen-devel] [Minios-devel] [PATCH RFC 14/16] Save/Restore Support: Add suspend/restore support for xenbus

2017-12-19 Thread Samuel Thibault
uct watch so that watches can be > re-registered > during xenbus resume. > > Signed-off-by: Bruno Alvisio Again, there are spurious hunks in this patch due to oddities in indentation, please remove them. Apart from that, Reviewed-by: Samuel Thibault > --- > include/

Re: [Xen-devel] [Minios-devel] [PATCH RFC 00/16] Save/Restore Support for mini-OS PVH

2017-12-19 Thread Samuel Thibault
->next != NULL; list = list->next) ; to make it explicit that the loop is empty. Also,  *ip = malloc(strlen(ldev->ip) + 1);  strncpy(*ip, ldev->ip, strlen(ldev->ip) + 1); can be a mere *ip = strdup(ldev->ip), can't it? Apart from that, Reviewed

Re: [Xen-devel] [Minios-devel] [PATCH RFC 00/16] Save/Restore Support for mini-OS PVH

2017-12-19 Thread Samuel Thibault
About patch 16, "Replace xenstore and console pfns with the correspondent mfns" seems exactly contrary to what the code does. Apart from that, Reviewed-by: Samuel Thibault Samuel ___ Xen-devel mailing list Xen-devel@lists.xenproject

Re: [PATCH] minios: Revert recent change and revert to working minios

2020-09-05 Thread Samuel Thibault
Hello, Jason Long, le ven. 04 sept. 2020 22:01:42 +, a ecrit: > Can anyone tell me about the goal and features of Mini-OS? https://wiki.xen.org/wiki/Mini-OS Samuel

Re: [PATCH] minios: Revert recent change and revert to working minios

2020-09-05 Thread Samuel Thibault
Jason Long, le sam. 05 sept. 2020 21:02:16 +, a ecrit: > What is the difference with Unikraft? Unikraft is originally based on MiniOS, and AIUI is actively being worked on while MiniOS is mostly only maintained. Samuel

Re: [PATCH v2] stubdom: remove tpm_version from vtpmmgr

2020-09-09 Thread Samuel Thibault
stubdom/vtpmmgr/vtpmmgr.a(vtpm_cmd_handler.o):(.bss+0x0): > multiple definition of `tpm_version'; > /home/abuild/rpmbuild/BUILD/xen-4.14.20200616T103126.3625b04991/non-dbg/stubdom/vtpmmgr/vtpmmgr.a(vtpmmgr.o):(.bss+0x0): > first defined here > > Signed-off-by: Olaf He

Re: [PATCH 1/2] mini-os: netfront: retrieve netmask and gateway via extra function

2020-09-22 Thread Samuel Thibault
dom, > too. > > So instead of tightly coupling Mini-OS and Xen build via this interface > modification undo this change of init_netfront() and add two other > functions for retrieving the netmask and gateway for a network device. > > Signed-off-by: Juergen Gross Reviewe

Re: [PATCH 2/2] mini-os: netfront: fix suspend/resume handling

2020-09-22 Thread Samuel Thibault
Fixes: d225f4012d69a1 ("Save/Restore Support: Add suspend/restore support for > netfront") > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > netfront.c | 162 ++--- > 1 file changed, 67 insertions(+), 95 del

Re: [PATCH 3/3] stubdom: add xenstore pvh stubdom

2020-09-27 Thread Samuel Thibault
Juergen Gross, le mer. 23 sept. 2020 08:45:41 +0200, a ecrit: > Add a PVH xenstore stubdom in order to support a Xenstore stubdom on > a hypervisor built without PV-support. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > .gitignore

Re: [PATCH 1/3] mini-os: fix double free() in netfront

2020-04-09 Thread Samuel Thibault
t; Coverity-ID: 1433637 > Fixes: d225f4012d69a19 ("Save/Restore Support: Add suspend/restore support > for netfront") > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > netfront.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/netfront.c b/netf

Re: [PATCH 2/3] mini-os: fix double free() in xenbus

2020-04-09 Thread Samuel Thibault
1433640 > Fixes: 973ad0c4de1b48 ("Save/Restore Support: Add suspend/restore support for > xenbus") > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > xenbus/xenbus.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff -

Re: [PATCH 3/3] mini-os: fix several memory leaks related to xenbus

2020-04-09 Thread Samuel Thibault
it. > > Fix that by either adding the needed calls of free(). > > Coverity-ID: 1433632 > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > blkfront.c | 4 ++-- > console/xenbus.c | 2 +- > fbfront.c| 4 ++-- > ne

Re: [PATCH] mini-os: allow 4096 event channels for 64-bit mini-os

2020-04-16 Thread Samuel Thibault
to a little bit more than 1000. > > So raise the number of event channels to 4096 in 64-bit builds. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > events.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/events.c b/e

Re: [PATCH] mini-os: provide binary without debug information

2020-04-16 Thread Samuel Thibault
Juergen Gross, le jeu. 16 avril 2020 14:27:48 +0200, a ecrit: > Provide a mini-os binary stripped from debug information in order to > have a smaller resulting kernel file. The binary with debug > information is kept with the suffix "-debug". > > Signed-off-by: Juergen Gr

Re: [PATCH] mini-os: use -m elf_i386 for final linking

2020-04-16 Thread Samuel Thibault
Juergen Gross, le jeu. 16 avril 2020 14:27:31 +0200, a ecrit: > Using the standard -m elf_x86_64 for 64-bit mini-os results in the > first section (.text) to start only at offset 2MB in the binary file. ? I'm not seeing this on my system: 0 .text 0001933a 00

Re: [PATCH] mini-os: use -m elf_i386 for final linking

2020-04-16 Thread Samuel Thibault
le." Ok, I see, I had indeed guessed that the 2M rounding probably had something to do with 2M pages. I'm afraid it may bite us back some day, but I'd say it is fine enough for now to include it, so Reviewed-by: Samuel Thibault with the information quoted above put in the changelog, please :) Samuel

Re: [PATCH] mini-os: Avoid segfaults in tc{g,s}etattr

2020-04-27 Thread Samuel Thibault
re tcgetattr and tcsetattr behavior when .dev is NULL equivalent to > unsupported_function as it was before c96c22f1d94. > > Signed-off-by: Jason Andryuk Reviewed-by: Samuel Thibault Thanks! > --- > I can't get ioemu-stubdom to start without this. With this, the guest >

Re: [PATCH] MAINTAINERS: list myself as mini-os reviewer

2020-04-28 Thread Samuel Thibault
there... Reviewed-by: Samuel Thibault > --- > Cc: Samuel Thibault > Cc: minios-de...@lists.xenproject.org > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 8a4c869704b0..e3748167550c 100644 > --- a/MAI

Re: [PATCH] x86/build: move -fno-asynchronous-unwind-tables into EMBEDDED_EXTRA_CFLAGS

2020-05-13 Thread Samuel Thibault
Hello, Jan Beulich, le mer. 13 mai 2020 16:11:00 +0200, a ecrit: > On 13.05.2020 15:55, Andrew Cooper wrote: > > Users of EMBEDDED_EXTRA_CFLAGS already use -fno-asynchronous-unwind-tables, > > or > > ought to. > > It's not really well defined what they're supposed to be used for > (and where it'

Re: [PATCH mini-os] console: add newline at EOF

2020-05-18 Thread Samuel Thibault
Jan Beulich, le lun. 18 mai 2020 09:09:14 +0200, a ecrit: > Some gcc versions get pretty unhappy without. > > Signed-off-by: Jan Beulich That was an easy one :) Reviewed-by: Samuel Thibault > > --- a/console/console.c > +++ b/console/console.c > @@ -174,4 +174,4 @@ voi

Re: [PATCH 01/12] stubdom: add stubdom/mini-os.mk for Xen paths used by Mini-OS

2020-07-18 Thread Samuel Thibault
Ian Jackson, le mer. 15 juil. 2020 17:25:00 +0100, a ecrit: > From: Juergen Gross > > stubdom/mini-os.mk should contain paths used by Mini-OS when built as > stubdom. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > stubdom/mini-os.mk | 17 +++

Re: [PATCH v2] mini-os: don't hard-wire xen internal paths

2020-07-18 Thread Samuel Thibault
Juergen Gross, le lun. 13 juil. 2020 10:42:30 +0200, a ecrit: > Mini-OS shouldn't use Xen internal paths for building. Import the > needed paths from Xen and fall back to the current values only if > the import was not possible. > > Signed-off-by: Juergen Gross Reviewed

Re: [PATCH 08/12] tools: move libxenctrl below tools/libs

2020-07-18 Thread Samuel Thibault
s/libs. > > So carve out libxenctrl from tools/libxc and move it into > tools/libs/ctrl. > > Signed-off-by: Juergen Gross > stubdom/Makefile | 29 +- > stubdom/mini-os.mk| 2 +- For that part, Reviewed-by: Samuel Thibault

Re: [PATCH] mini-os: correct memory access rights for pvh mode

2020-08-15 Thread Samuel Thibault
it requires a page fault when writing to a > read-only page. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > arch/x86/x86_hvm.S| 2 +- > include/x86/arch_mm.h | 18 -- > include/x86/os.h | 1 + > 3 files changed, 14 ins

Re: [PATCH] mini-os: fix do_map_frames() for pvh

2020-08-15 Thread Samuel Thibault
Juergen Gross, le sam. 15 août 2020 13:12:57 +0200, a ecrit: > In case ov PVH dom_map_frames() is missing to increment the virtual > address. This leads to writing only the first page table entry multiple > times. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault &g

Re: [PATCH II v2 01/17] stubdom: add correct dependencies for Xen libraries

2020-08-17 Thread Samuel Thibault
Hello, Juergen Gross, le lun. 17 août 2020 11:49:06 +0200, a ecrit: > The stubdom Makefile is missing several dependencies between Xen > libraries. Add them. > @@ -405,6 +405,7 @@ libs-$(XEN_TARGET_ARCH)/toollog/libxentoollog.a: > mk-headers-$(XEN_TARGET_ARCH) $ > > .PHONY: libxenevtchn > li

Re: [PATCH II v2 17/17] tools: move libxenctrl below tools/libs

2020-08-17 Thread Samuel Thibault
.b1387df3f8 100644 > --- a/stubdom/mini-os.mk > +++ b/stubdom/mini-os.mk For these, Reviewed-by: Samuel Thibault

Re: [PATCH v3 07/38] stubdom: add correct dependencies for Xen libraries

2020-08-23 Thread Samuel Thibault
Juergen Gross, le dim. 23 août 2020 11:34:48 +0200, a ecrit: > The stubdom Makefile is missing several dependencies between Xen > libraries. Add them. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault In case another round of review is needed, perhaps you can ju

Re: [PATCH v3 08/38] stubdom: simplify building xen libraries for stubdoms

2020-08-23 Thread Samuel Thibault
reviewing :) > Even if not needed right now add the possibility for defining > additional dependencies for a library. So I fully agree :) Reviewed-by: Samuel Thibault > Signed-off-by: Juergen Gross > --- > stubdom/Makefile | 120 ++---

Re: [PATCH v3 27/38] tools/libxc: move libxenguest to tools/libs/guest

2020-08-23 Thread Samuel Thibault
viewed-by: Samuel Thibault > --- > .gitignore| 16 +- > stubdom/Makefile | 34 +-- > stubdom/grub/Makefile | 2 +- > stubdom/mini-os.mk| 2

Re: [xen-unstable-smoke test] 152898: regressions - FAIL

2020-08-27 Thread Samuel Thibault
Costin Lupu, le jeu. 27 août 2020 19:47:08 +0300, a ecrit: > On 8/27/20 7:07 PM, Jan Beulich wrote: > > On 27.08.2020 17:49, osstest service owner wrote: > >> flight 152898 xen-unstable-smoke real [real] > >> http://logs.test-lab.xenproject.org/osstest/logs/152898/ > >> > >> Regressions :-( > >> >

Re: [PATCH] stubdom/grub: Update init_netfront() call for mini-os

2020-08-27 Thread Samuel Thibault
> the ip parameter because (a) it is not used anywhere and (b) it wastes > memory since it would reference a dynamically allocated string. > > Signed-off-by: Costin Lupu Reviewed-by: Samuel Thibault > --- > stubdom/grub/mini-os.c | 4 +--- > 1 file changed, 1 insertion(+), 3

Re: -mno-tls-direct-seg-refs support in glibc for i386 PV Xen

2020-05-27 Thread Samuel Thibault
Hello, Andrew Cooper via Libc-alpha, le mer. 27 mai 2020 14:39:00 +0100, a ecrit: > Why does the MSB make any difference?  %gs still needs to remain intact > so the thread pointer can be pulled out, so there is nothing that Xen or > Linux can do in the way of lazy loading. > > Beyond that, its st

Re: [PATCH v1] stubdom/vtpm: add extern to function declarations

2020-06-17 Thread Samuel Thibault
> > Reviewed-by: Jason Andryuk Acked-by: Samuel Thibault Thanks!

Re: [PATCH v1] stubdom/vtpmmgr: simplify handling of hardware_version

2020-06-17 Thread Samuel Thibault
Olaf Hering, le mer. 17 juin 2020 08:13:49 +0200, a ecrit: > int hw_is_tpm2(void) > { > -return (hardware_version.hw_version == TPM2_HARDWARE) ? 1 : 0; > +return hardware_version == 2 ? 1 : 0; > } Or even return hardware_version == 2; ? Either case, Acked-by:

Block requests priorities?

2020-07-05 Thread Samuel Thibault
Hello, Every month, we are getting a RAID check at the same time as VMs backing up their data. Yes, probably not a good thing to do, but that should still be working, and what we see is the whole system gets overly sluggish since we mark all of these idle-prioritized. The RAID check is happening

Re: [MINI-OS PATCH 2/2] drop CONFIG_XC support

2024-10-08 Thread Samuel Thibault
Hello, Jürgen Groß, le mar. 08 oct. 2024 11:22:11 +0200, a ecrit: > On 08.10.24 00:13, Samuel Thibault wrote: > > Juergen Gross, le lun. 07 oct. 2024 12:34:56 +0200, a ecrit: > > > CONFIG_XC is no longer needed with individual CONFIG_LIBXEN support. > > > > I don&#x

Re: [MINI-OS PATCH v2] add config support for each Xen library

2024-10-09 Thread Samuel Thibault
> > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > V2: > - merge patches of the V1 series (Samuel Thibault) > > Note: do not apply to the tree until the related Xen series > "stubdom: prepare more fine grained Xen library usage" has

Re: [PATCH 3/3] stubdom: use real lib dependencies for xenstore stubdoms

2024-10-10 Thread Samuel Thibault
dencies instead. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > stubdom/Makefile | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/stubdom/Makefile b/stubdom/Makefile > index 6ed4253b25..2a81af28a1 100644 > --- a

Re: [PATCH 2/4] stubdom: explcitly add libc and lwip Mini-OS config options

2024-10-07 Thread Samuel Thibault
> diff --git a/stubdom/grub/minios.cfg b/stubdom/grub/minios.cfg > index 8df49092cd..5145b357e0 100644 > --- a/stubdom/grub/minios.cfg > +++ b/stubdom/grub/minios.cfg > @@ -1,3 +1,4 @@ > -CONFIG_START_NETWORK=n > +CONFIG_LIBC=y > +CONFIG_LWIP=n > CONFIG_SPARSE_BSS=n > CONFIG_TPMFRONT=y Grub does

Re: [MINI-OS PATCH 2/2] drop CONFIG_XC support

2024-10-07 Thread Samuel Thibault
Juergen Gross, le lun. 07 oct. 2024 12:34:56 +0200, a ecrit: > CONFIG_XC is no longer needed with individual CONFIG_LIBXEN support. I don't really see why in the previous patch you introduced compatibility and here you remove it? Samuel > Remove it, while disabling the CONFIG_LIBXEN items by def

Re: [PATCH 2/4] stubdom: explcitly add libc and lwip Mini-OS config options

2024-10-08 Thread Samuel Thibault
Jürgen Groß, le mar. 08 oct. 2024 11:18:26 +0200, a ecrit: > On 07.10.24 23:50, Samuel Thibault wrote: > > > diff --git a/stubdom/grub/minios.cfg b/stubdom/grub/minios.cfg > > > index 8df49092cd..5145b357e0 100644 > > > --- a/stubdom/grub/minios.cfg >

Re: [PATCH 2/4] stubdom: explcitly add libc and lwip Mini-OS config options

2024-10-08 Thread Samuel Thibault
, add > them to the related stubdom Mini-OS config files. > > While at it remove the CONFIG_START_NETWORK setting from config files > disabling lwip, as CONFIG_START_NETWORK requires lwip for becoming > effective. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thib

Re: [Mini-OS PATCH] Add missing symbol exports for grub-pv

2024-10-29 Thread Samuel Thibault
Natanael Copa > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > arch/x86/mm.c| 1 + > arch/x86/setup.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/arch/x86/mm.c b/arch/x86/mm.c > index 572e762e..3ba6d917 100644 > --- a/arch/x86/m

Re: [MINI-OS PATCH] config: add support for libxenmanage

2024-10-23 Thread Samuel Thibault
s been Acked, > as otherwise it should either be dropped (in case the approach of > adding a new library is being rejected) or changed (in case the name > of the new library needs to be modified)! For the positive case, Reviewed-by: Samuel Thibault > > Config.mk | 2 ++

Re: [PATCH 1/2] mini-os: fix testbuilds regarding CONFIG_XC

2021-10-05 Thread Samuel Thibault
default setting of CONFIG_XC > depending on libc being available. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault Thanks! > --- > Config.mk | 3 ++- > arch/x86/testbuild/all-yes| 3 ++- > arch/x86/testbuild/newxen-yes | 3 ++- > 3 f

Re: [PATCH 2/2] mini-os: add config options for xen libraries

2021-10-05 Thread Samuel Thibault
CHN > and CONFIG_LIBXENGNTTAB config options. > > In case CONFIG_XC was specified in the Mini-OS config explicitly, set > the three new variables to the specified value. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault Thanks! > --- > Config.mk | 7

Re: [PATCH] Mini-OS: move xenbus test code into test.c

2023-01-29 Thread Samuel Thibault
Juergen Gross, le ven. 27 janv. 2023 08:33:46 +0100, a ecrit: > The test code in xenbus.c can easily be moved into test.c. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > test.c | 108 +++- &g

Re: [PATCH] Mini-OS: remove stale subdirs from Makefile

2023-01-29 Thread Samuel Thibault
Juergen Gross, le ven. 27 janv. 2023 08:32:44 +0100, a ecrit: > The SUBDIRS make variable has some stale entries, remove them. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [PATCH 1/7] Mini-OS: xenbus: add support for reading node from directory

2023-02-04 Thread Samuel Thibault
Hello, Juergen Gross, le ven. 03 févr. 2023 10:18:03 +0100, a ecrit: > +char *xenbus_read_unsigned(xenbus_transaction_t xbt, const char *dir, > + const char *node, unsigned int *value) > +{ > +char path[BUFFER_SIZE]; > +char *msg; > +char *str; > + > +xenb

Re: [PATCH 2/7] Mini-OS: add concept of mount points

2023-02-05 Thread Samuel Thibault
e/lib.h, as it is missing > today. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault Thanks! > --- > include/lib.h | 9 ++ > lib/sys.c | 80 +++ > 2 files changed, 70 insertions(+), 19 deletions(-) > &

Re: [PATCH 3/7] Mini-OS: add support for runtime mounts

2023-02-05 Thread Samuel Thibault
trast to device specific data. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > include/lib.h | 5 + > lib/sys.c | 50 +- > 2 files changed, 54 insertions(+), 1 deletion(-) > > diff --git

Re: [PATCH 2/7] Mini-OS: add concept of mount points

2023-02-05 Thread Samuel Thibault
Juergen Gross, le ven. 03 févr. 2023 10:18:04 +0100, a ecrit: > +int open(const char *pathname, int flags, ...) > +{ > +unsigned int m, mlen; > +struct mount_point *mnt; > +mode_t mode = 0; > +va_list ap; > + > +if ( flags & O_CREAT ) > +{ > +va_start(ap, flags); > +

Re: [PATCH 4/7] Mini-OS: add 9pfs frontend

2023-02-06 Thread Samuel Thibault
Juergen Gross, le ven. 03 févr. 2023 10:18:06 +0100, a ecrit: > +void *init_9pfront(unsigned int id, const char *mnt) > +{ [...] > +free(xenbus_watch_path_token(XBT_NIL, bepath, bepath, &dev->events)); Better check for errors, otherwise the rest will hang without useful feedback. > +for (

Re: [PATCH 5/7] Mini-OS: add 9pfs transport layer

2023-02-06 Thread Samuel Thibault
Juergen Gross, le ven. 03 févr. 2023 10:18:07 +0100, a ecrit: > +/* > + * Using an opportunistic approach for receiving data: in case multiple > + * requests are outstanding (which is very unlikely), we nevertheless need > + * to consume all data available until we reach the desired request. > + *

Re: [PATCH 4/7] Mini-OS: add 9pfs frontend

2023-02-06 Thread Samuel Thibault
Juergen Gross, le lun. 06 févr. 2023 10:22:10 +0100, a ecrit: > On 06.02.23 10:01, Samuel Thibault wrote: > > Juergen Gross, le ven. 03 févr. 2023 10:18:06 +0100, a ecrit: > > > +void *init_9pfront(unsigned int id, const char *mnt) > > > +{ > > [...] > > >

Re: [PATCH 6/7] Mini-OS: add open and close handling to the 9pfs frontend

2023-02-06 Thread Samuel Thibault
Juergen Gross, le ven. 03 févr. 2023 10:18:08 +0100, a ecrit: > +static unsigned int get_fid(struct dev_9pfs *dev) > +{ > +unsigned int fid; > + > +fid = ffs(dev->fid_mask); > +if ( fid ) > +dev->fid_mask &= 1ULL << (fid - 1); Isn't that missing a ~ ? > @@ -459,6 +522,134 @@ s

Re: [PATCH 7/7] Mini-OS: add read and write support to 9pfsfront

2023-02-06 Thread Samuel Thibault
Juergen Gross, le ven. 03 févr. 2023 10:18:09 +0100, a ecrit: > This patch is missing the limitation of read/write messages to stay > below the max. supported message size. It should at least be asserted. > +static int p9_read(struct dev_9pfs *dev, uint32_t fid, uint64_t offset, > +

Re: [PATCH 0/7] Mini-OS: ad minimal 9pfs support

2023-02-06 Thread Samuel Thibault
Hello, Juergen Gross, le ven. 03 févr. 2023 10:18:02 +0100, a ecrit: > This series is adding minimal support to use 9pfs in Mini-OS. It is > adding a PV 9pfs frontend and the ability to open, close, read and > write files. Nice, thanks! :) Samuel

Re: [PATCH 7/7] Mini-OS: add read and write support to 9pfsfront

2023-02-06 Thread Samuel Thibault
Juergen Gross, le lun. 06 févr. 2023 11:17:27 +0100, a ecrit: > On 06.02.23 11:13, Samuel Thibault wrote: > > > > Juergen Gross, le ven. 03 févr. 2023 10:18:09 +0100, a ecrit: > > > This patch is missing the limitation of read/write messages to stay > > > belo

Re: [PATCH v2 3/7] Mini-OS: add support for runtime mounts

2023-02-10 Thread Samuel Thibault
Juergen Gross, le ven. 10 févr. 2023 13:14:20 +0100, a ecrit: > On 10.02.23 12:43, Andrew Cooper wrote: > > On 10/02/2023 10:46 am, Juergen Gross wrote: > > > diff --git a/lib/sys.c b/lib/sys.c > > > index 2f33c937..dc8a8c69 100644 > > > --- a/lib/sys.c > > > +++ b/lib/sys.c > > > @@ -339,7 +339,14

Re: [PATCH v2 1/7] Mini-OS: xenbus: add support for reading node from directory

2023-02-10 Thread Samuel Thibault
: Juergen Gross Reviewed-by: Samuel Thibault > --- > V2: > - check sscanf() return value (Samuel Thibault) > --- > include/xenbus.h | 6 ++ > xenbus.c | 40 +--- > 2 files changed, 43 insertions(+), 3 deletions(-) > &g

Re: [PATCH v2 2/7] Mini-OS: add concept of mount points

2023-02-10 Thread Samuel Thibault
e/lib.h, as it is missing > today. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > V2: > - pass path below mount point to open callbacks (Samuel Thibault) > --- > include/lib.h | 9 ++ > lib/sys.c | 80 +++--

Re: [PATCH v2 4/7] Mini-OS: add 9pfs frontend

2023-02-10 Thread Samuel Thibault
ility to access files) the whole code is guarded > by "#ifdef HAVE_LIBC". > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > V2: > - add better error handling to version parsing (Samuel Thibault) > --- > 9pfront.c | 28

Re: [PATCH v2 5/7] Mini-OS: add 9pfs transport layer

2023-02-10 Thread Samuel Thibault
sts of the 9pfs > protocol when mounting a new 9pfs device. For the version use the > "9P2000.u" variant, as it is the smallest subset supported by the qemu > based backend. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > V2: > - add more comm

Re: [PATCH v2 6/7] Mini-OS: add open and close handling to the 9pfs frontend

2023-02-10 Thread Samuel Thibault
Juergen Gross, le ven. 10 févr. 2023 11:46:27 +0100, a ecrit: > +static bool path_canonical(const char *pathname) > +{ > +unsigned int len = strlen(pathname); > +const char *c; > + > +/* Empty path is allowed. */ > +if ( !len ) > +return true; > + > +/* No trailing '/'.

Re: [PATCH v2 7/7] Mini-OS: add read and write support to 9pfsfront

2023-02-10 Thread Samuel Thibault
Juergen Gross, le ven. 10 févr. 2023 11:46:28 +0100, a ecrit: > +while ( len ) > +{ > +count = len; > +if ( count > dev->msize_max - 24 ) > +count = dev->msize_max - 24; 24 should be detailed, to include e.g. sizeof(p9_header) and the sum of sizes of the fields

Re: [PATCH v3 6/7] Mini-OS: add open and close handling to the 9pfs frontend

2023-02-13 Thread Samuel Thibault
Juergen Gross, le lun. 13 févr. 2023 09:44:11 +0100, a ecrit: > Add the open() and close() support to the 9pfs frontend. This requires > to split the path name and to walk to the desired directory level. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- >

Re: [PATCH v3 7/7] Mini-OS: add read and write support to 9pfsfront

2023-02-13 Thread Samuel Thibault
Juergen Gross, le lun. 13 févr. 2023 09:44:12 +0100, a ecrit: > Add support to read from and write to a file handled by 9pfsfront. > > Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault > --- > V2: > - add check for max message size > - return EAGAIN in case no fre

Re: [PATCH v3 0/7] Mini-OS: add minimal 9pfs support

2023-02-13 Thread Samuel Thibault
orting the 9P2000.u variant, > as qemu doesn't support the basic 9P2000 protocol). > > The needed fixed values of the protocol have been taken from [2]. > > [1]: http://ericvh.github.io/9p-rfc/rfc9p2000.html > [2]: https://github.com/0intro/libixp > > Changes in V2:

Re: [PATCH 3/3] mini-os: fix number of pages for PVH

2022-06-18 Thread Samuel Thibault
Hello, Juergen Gross, le sam. 18 juin 2022 12:48:16 +0200, a ecrit: > @@ -124,7 +126,7 @@ void arch_mm_preinit(void *p) > do_exit(); > } > > -last_free_pfn = e820_get_maxpfn(ret); > +last_free_pfn = e820_get_maxpfn(ret - e820_initial_reserved_pfns); Mmm, but the reserved p

  1   2   3   >