CVS commit: src/sys/arch/xen/x86

2023-11-06 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Mon Nov 6 17:01:07 UTC 2023 Modified Files: src/sys/arch/xen/x86: xen_ipi.c Log Message: xen_ipi: valid_ipimask: Sprinkle __diagused to fix clang !DIAGNOSTIC build To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42

CVS commit: src/sys/arch/xen/x86

2023-11-06 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Mon Nov 6 17:01:07 UTC 2023 Modified Files: src/sys/arch/xen/x86: xen_ipi.c Log Message: xen_ipi: valid_ipimask: Sprinkle __diagused to fix clang !DIAGNOSTIC build To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42

CVS commit: src/sys/arch/xen/x86

2023-10-17 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Tue Oct 17 13:27:58 UTC 2023 Modified Files: src/sys/arch/xen/x86: pvh_consinit.c Log Message: Make sure to always fall back to xen_early_console, even for dom0 To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/sys/arch/xen/x86

2023-10-17 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Tue Oct 17 13:27:58 UTC 2023 Modified Files: src/sys/arch/xen/x86: pvh_consinit.c Log Message: Make sure to always fall back to xen_early_console, even for dom0 To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/sys/arch/xen/x86

2023-08-06 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 6 16:07:53 UTC 2023 Modified Files: src/sys/arch/xen/x86: xen_ipi.c Log Message: xen/x86: Get the right intrframe pointer in ddb ipi. This was broken with the transition from evtchn_set_handler to

CVS commit: src/sys/arch/xen/x86

2023-08-06 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Aug 6 16:07:53 UTC 2023 Modified Files: src/sys/arch/xen/x86: xen_ipi.c Log Message: xen/x86: Get the right intrframe pointer in ddb ipi. This was broken with the transition from evtchn_set_handler to

CVS commit: src/sys/arch/xen/x86

2023-07-22 Thread matthew green
Module Name:src Committed By: mrg Date: Sat Jul 22 19:13:17 UTC 2023 Modified Files: src/sys/arch/xen/x86: consinit.c pvh_consinit.c Added Files: src/sys/arch/xen/x86: xen_def_cons.h Log Message: xen: declare 'default_consinfo' as extern in a header this makes

CVS commit: src/sys/arch/xen/x86

2023-07-22 Thread matthew green
Module Name:src Committed By: mrg Date: Sat Jul 22 19:13:17 UTC 2023 Modified Files: src/sys/arch/xen/x86: consinit.c pvh_consinit.c Added Files: src/sys/arch/xen/x86: xen_def_cons.h Log Message: xen: declare 'default_consinfo' as extern in a header this makes

CVS commit: src/sys/arch/xen/x86

2023-03-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Mar 1 08:13:44 UTC 2023 Modified Files: src/sys/arch/xen/x86: hypervisor_machdep.c Log Message: xen/x86: Need kpreempt_disable/enable around curcpu() access. This is called with `hardware' interrupts enabled (between sti

CVS commit: src/sys/arch/xen/x86

2023-03-01 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Mar 1 08:13:44 UTC 2023 Modified Files: src/sys/arch/xen/x86: hypervisor_machdep.c Log Message: xen/x86: Need kpreempt_disable/enable around curcpu() access. This is called with `hardware' interrupts enabled (between sti

CVS commit: src/sys/arch/xen/x86

2023-02-24 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Feb 25 00:35:01 UTC 2023 Modified Files: src/sys/arch/xen/x86: cpu.c Log Message: xen/x86/cpu.c: Nix trailing whitespace. No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.144 -r1.145

CVS commit: src/sys/arch/xen/x86

2023-02-24 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Feb 25 00:35:01 UTC 2023 Modified Files: src/sys/arch/xen/x86: cpu.c Log Message: xen/x86/cpu.c: Nix trailing whitespace. No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.144 -r1.145

CVS commit: src/sys/arch/xen/x86

2023-02-24 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Feb 25 00:32:38 UTC 2023 Modified Files: src/sys/arch/xen/x86: cpu.c Log Message: xen/x86/cpu.c: Membar audit. I see no reason for store-before-load ordering here; as far as I'm aware, evtchn_upcall_mask is only shared

CVS commit: src/sys/arch/xen/x86

2023-02-24 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Feb 25 00:32:38 UTC 2023 Modified Files: src/sys/arch/xen/x86: cpu.c Log Message: xen/x86/cpu.c: Membar audit. I see no reason for store-before-load ordering here; as far as I'm aware, evtchn_upcall_mask is only shared

CVS commit: src/sys/arch/xen/x86

2023-02-24 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Feb 25 00:32:13 UTC 2023 Modified Files: src/sys/arch/xen/x86: xen_intr.c Log Message: xen_intr.c: Use kpreempt_disable/enable around access to curcpu(). curcpu() is not otherwise guaranteed to be stable at these points.

CVS commit: src/sys/arch/xen/x86

2023-02-24 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Feb 25 00:32:13 UTC 2023 Modified Files: src/sys/arch/xen/x86: xen_intr.c Log Message: xen_intr.c: Use kpreempt_disable/enable around access to curcpu(). curcpu() is not otherwise guaranteed to be stable at these points.

CVS commit: src/sys/arch/xen/x86

2022-05-31 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Tue May 31 18:01:22 UTC 2022 Modified Files: src/sys/arch/xen/x86: hypervisor_machdep.c Log Message: When we have pending events in stipending(), evt_set_pending() has to set the ih_pending flag for each handler too. Xen/i386

CVS commit: src/sys/arch/xen/x86

2022-05-31 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Tue May 31 18:01:22 UTC 2022 Modified Files: src/sys/arch/xen/x86: hypervisor_machdep.c Log Message: When we have pending events in stipending(), evt_set_pending() has to set the ih_pending flag for each handler too. Xen/i386

CVS commit: src/sys/arch/xen/x86

2022-05-31 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Tue May 31 14:21:44 UTC 2022 Modified Files: src/sys/arch/xen/x86: hypervisor_machdep.c Log Message: Revert previous; evt_set_pending() will set ret to 1 if needed to this was not our bug. To generate a diff of this commit: cvs

CVS commit: src/sys/arch/xen/x86

2022-05-31 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Tue May 31 14:21:44 UTC 2022 Modified Files: src/sys/arch/xen/x86: hypervisor_machdep.c Log Message: Revert previous; evt_set_pending() will set ret to 1 if needed to this was not our bug. To generate a diff of this commit: cvs

CVS commit: src/sys/arch/xen/x86

2022-05-31 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Tue May 31 12:52:59 UTC 2022 Modified Files: src/sys/arch/xen/x86: hypervisor_machdep.c Log Message: stipending(): if we're going to process some interrupts don't return 0. Hopefully fixes random hang seen in i386 Xen PV. The

CVS commit: src/sys/arch/xen/x86

2022-05-31 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Tue May 31 12:52:59 UTC 2022 Modified Files: src/sys/arch/xen/x86: hypervisor_machdep.c Log Message: stipending(): if we're going to process some interrupts don't return 0. Hopefully fixes random hang seen in i386 Xen PV. The

CVS commit: src/sys/arch/xen/x86

2022-05-26 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Thu May 26 11:06:14 UTC 2022 Modified Files: src/sys/arch/xen/x86: pintr.c Log Message: aprint_debug(): if a hypercall fail, print the return code. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24

CVS commit: src/sys/arch/xen/x86

2022-05-26 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Thu May 26 11:06:14 UTC 2022 Modified Files: src/sys/arch/xen/x86: pintr.c Log Message: aprint_debug(): if a hypercall fail, print the return code. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24

CVS commit: src/sys/arch/xen/x86

2022-05-24 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Tue May 24 15:51:10 UTC 2022 Modified Files: src/sys/arch/xen/x86: pintr.c Log Message: Remove useless info from debug printf, fix format warning on i386 To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23

CVS commit: src/sys/arch/xen/x86

2022-05-24 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Tue May 24 15:51:10 UTC 2022 Modified Files: src/sys/arch/xen/x86: pintr.c Log Message: Remove useless info from debug printf, fix format warning on i386 To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23

CVS commit: src/sys/arch/xen/x86

2022-05-11 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Wed May 11 16:22:46 UTC 2022 Modified Files: src/sys/arch/xen/x86: x86_xpmap.c Log Message: In bootstrap, after switching to a new page table make sure that now-unused memory is unmapped. To generate a diff of this commit: cvs

CVS commit: src/sys/arch/xen/x86

2022-05-11 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Wed May 11 16:22:46 UTC 2022 Modified Files: src/sys/arch/xen/x86: x86_xpmap.c Log Message: In bootstrap, after switching to a new page table make sure that now-unused memory is unmapped. To generate a diff of this commit: cvs

CVS commit: src/sys/arch/xen/x86

2022-01-05 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Jan 5 20:21:29 UTC 2022 Modified Files: src/sys/arch/xen/x86: xen_ipi.c Log Message: remove DIAGNOSTIC so that function is defined for KASSERTMSG. Hope that the compiler removes it. To generate a diff of this commit: cvs

CVS commit: src/sys/arch/xen/x86

2022-01-05 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Jan 5 20:21:29 UTC 2022 Modified Files: src/sys/arch/xen/x86: xen_ipi.c Log Message: remove DIAGNOSTIC so that function is defined for KASSERTMSG. Hope that the compiler removes it. To generate a diff of this commit: cvs

CVS commit: src/sys/arch/xen/x86

2019-06-07 Thread Cherry G. Mathew
Module Name:src Committed By: cherry Date: Fri Jun 7 12:43:52 UTC 2019 Modified Files: src/sys/arch/xen/x86: xen_intr.c Log Message: Fix build for the XEN3_PVHVM kernel by conditoinally compiling redundant functions x86_enable_intr()/x86_disable_intr() To generate a

CVS commit: src/sys/arch/xen/x86

2019-06-07 Thread Cherry G. Mathew
Module Name:src Committed By: cherry Date: Fri Jun 7 12:43:52 UTC 2019 Modified Files: src/sys/arch/xen/x86: xen_intr.c Log Message: Fix build for the XEN3_PVHVM kernel by conditoinally compiling redundant functions x86_enable_intr()/x86_disable_intr() To generate a

re: CVS commit: src/sys/arch/xen/x86

2016-12-27 Thread matthew green
> XXX: The tradeoff is a (predicted) single word size comparison > penalty, so perhaps a decision needs performance stats. compared to a TLB shootdown? let's just move along and try not to hear the noise this _may_ generate.. .mrg.

Re: CVS commit: src/sys/arch/xen/x86

2016-08-09 Thread Maxime Villard
Le 08/08/2016 à 04:27, Cherry G. Mathew a écrit : On 2 August 2016 at 19:51, Maxime Villard > wrote: Module Name:src Committed By: maxv Date: Tue Aug 2 14:21:53 UTC 2016 Modified Files: src/sys/arch/xen/x86:

Re: CVS commit: src/sys/arch/xen/x86

2016-08-07 Thread Cherry G. Mathew
On 2 August 2016 at 19:51, Maxime Villard wrote: > Module Name:src > Committed By: maxv > Date: Tue Aug 2 14:21:53 UTC 2016 > > Modified Files: > src/sys/arch/xen/x86: x86_xpmap.c > > Log Message: > Map the kernel text, rodata and data+bss independently

Re: CVS commit: src/sys/arch/xen/x86

2013-11-11 Thread Jukka Ruohonen
On Sun, Nov 10, 2013 at 11:17:54AM -0800, John Nemeth wrote: } x86_wbind()? Which however appears to be (icorrectly?) #ifndef'd for Xen. Uh, the function for Xen would be wbinvd(), which would create a very nice infinite loop as all that function does is call xpq_flush_cache(). This

Re: CVS commit: src/sys/arch/xen/x86

2013-11-11 Thread Jukka Ruohonen
On Mon, Nov 11, 2013 at 02:52:30AM -0800, John Nemeth wrote: My point is, if you want to know, go read the thread in port-xen@, or the code. Also, what trivial function for Xen? The wrappers in cpufunc.S'es. - Jukka.

Re: CVS commit: src/sys/arch/xen/x86

2013-11-11 Thread John Nemeth
On Nov 11, 12:30pm, Jukka Ruohonen wrote: } On Sun, Nov 10, 2013 at 11:17:54AM -0800, John Nemeth wrote: } } x86_wbind()? Which however appears to be (icorrectly?) #ifndef'd for Xen. } } Uh, the function for Xen would be wbinvd(), which would create } a very nice infinite loop as all

Re: CVS commit: src/sys/arch/xen/x86

2013-11-11 Thread Jukka Ruohonen
Thanks for the explanation! Btw, it was not criticism but a question. - Jukka. On Mon, Nov 11, 2013 at 12:31:19PM -0800, John Nemeth wrote: On Nov 11, 1:05pm, Jukka Ruohonen wrote: } On Mon, Nov 11, 2013 at 02:52:30AM -0800, John Nemeth wrote: } My point is, if you want to know, go

Re: CVS commit: src/sys/arch/xen/x86

2013-11-11 Thread John Nemeth
On Nov 11, 1:05pm, Jukka Ruohonen wrote: } On Mon, Nov 11, 2013 at 02:52:30AM -0800, John Nemeth wrote: } My point is, if you want to know, go read the thread in port-xen@, } or the code. Also, what trivial function for Xen? } } The wrappers in cpufunc.S'es. So that would be

Re: CVS commit: src/sys/arch/xen/x86

2013-11-10 Thread Jukka Ruohonen
On Sun, Nov 10, 2013 at 01:19:13AM +, John Nemeth wrote: Module Name: src Committed By: jnemeth Date: Sun Nov 10 01:19:13 UTC 2013 Modified Files: src/sys/arch/xen/x86: x86_xpmap.c Log Message: Change xpq_flush_cache to just do WBINVD letting the hypervisor trap and

Re: CVS commit: src/sys/arch/xen/x86

2013-11-10 Thread John Nemeth
On Nov 10, 4:50pm, Jukka Ruohonen wrote: } On Sun, Nov 10, 2013 at 01:19:13AM +, John Nemeth wrote: } Module Name:src } Committed By: jnemeth } Date: Sun Nov 10 01:19:13 UTC 2013 } } Modified Files: } src/sys/arch/xen/x86: x86_xpmap.c } } Log Message:

CVS commit: src/sys/arch/xen/x86

2010-03-09 Thread Jean-Yves Migeon
Module Name:src Committed By: jym Date: Tue Mar 9 23:12:06 UTC 2010 Modified Files: src/sys/arch/xen/x86: xen_bus_dma.c Log Message: Although Xen's documentation states that the address_bits field is not used by XENMEM_decrease_reservation, it is checked by the

CVS commit: src/sys/arch/xen/x86

2010-03-09 Thread Jean-Yves Migeon
Module Name:src Committed By: jym Date: Tue Mar 9 23:12:06 UTC 2010 Modified Files: src/sys/arch/xen/x86: xen_bus_dma.c Log Message: Although Xen's documentation states that the address_bits field is not used by XENMEM_decrease_reservation, it is checked by the

Re: CVS commit: src/sys/arch/xen/x86

2010-03-03 Thread Izumi Tsutsui
OT: these are a little unclear to me. Could someone outline what roundup roundup2 rounddown howmany They are in sys/param.h. #define howmany(x, y) (((x)+((y)-1))/(y)) how many y-byte blocks are required to store x-bytes region? #define roundup(x, y)

CVS commit: src/sys/arch/xen/x86

2010-03-02 Thread Jean-Yves Migeon
Module Name:src Committed By: jym Date: Wed Mar 3 00:09:03 UTC 2010 Modified Files: src/sys/arch/xen/x86: cpu.c Log Message: Use roundup2() instead of hardcoding the CACHE_LINE_SIZE rounding operation. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42

CVS commit: src/sys/arch/xen/x86

2010-03-02 Thread Jean-Yves Migeon
Module Name:src Committed By: jym Date: Wed Mar 3 00:09:03 UTC 2010 Modified Files: src/sys/arch/xen/x86: cpu.c Log Message: Use roundup2() instead of hardcoding the CACHE_LINE_SIZE rounding operation. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42

CVS commit: src/sys/arch/xen/x86

2010-03-01 Thread Jean-Yves Migeon
Module Name:src Committed By: jym Date: Tue Mar 2 00:13:50 UTC 2010 Modified Files: src/sys/arch/xen/x86: xen_bus_dma.c Log Message: Catch the return value from the XENMEM_decrease_reservation hypercall, and not some error value stored earlier. While here, fix a typo in

CVS commit: src/sys/arch/xen/x86

2010-03-01 Thread Jean-Yves Migeon
Module Name:src Committed By: jym Date: Tue Mar 2 00:13:50 UTC 2010 Modified Files: src/sys/arch/xen/x86: xen_bus_dma.c Log Message: Catch the return value from the XENMEM_decrease_reservation hypercall, and not some error value stored earlier. While here, fix a typo in

CVS commit: src/sys/arch/xen/x86

2010-02-27 Thread Jean-Yves Migeon
Module Name:src Committed By: jym Date: Sat Feb 27 09:22:40 UTC 2010 Modified Files: src/sys/arch/xen/x86: xen_bus_dma.c Log Message: Make a XENMEM_decrease_reservation DEBUG printf() more meaningful. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18

CVS commit: src/sys/arch/xen/x86

2010-02-27 Thread Jean-Yves Migeon
Module Name:src Committed By: jym Date: Sat Feb 27 09:22:40 UTC 2010 Modified Files: src/sys/arch/xen/x86: xen_bus_dma.c Log Message: Make a XENMEM_decrease_reservation DEBUG printf() more meaningful. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18

CVS commit: src/sys/arch/xen/x86

2010-02-15 Thread David Young
Module Name:src Committed By: dyoung Date: Mon Feb 15 23:53:56 UTC 2010 Modified Files: src/sys/arch/xen/x86: mainbus.c Log Message: Don't use the global variable pci_mode, but use a local copy of the return value of pci_mode_detect(), instead. To generate a diff of