svn commit: r362331 - in stable/11/sys: dev/xen/console dev/xen/control dev/xen/evtchn x86/xen

2020-06-18 Thread Roger Pau Monné
Author: royger Date: Thu Jun 18 15:44:40 2020 New Revision: 362331 URL: https://svnweb.freebsd.org/changeset/base/362331 Log: MFC r352925: xen/ctrl: acknowledge all control requests MFC r357616: xen/console: fix priority of Xen console MFC r361274: dev/xenstore: fix return with locks held

svn commit: r362329 - in stable/12/sys: dev/xen/console dev/xen/control dev/xen/evtchn x86/xen

2020-06-18 Thread Roger Pau Monné
Author: royger Date: Thu Jun 18 15:15:04 2020 New Revision: 362329 URL: https://svnweb.freebsd.org/changeset/base/362329 Log: MFC r352925: xen/ctrl: acknowledge all control requests MFC r357616: xen/console: fix priority of Xen console MFC r361274: dev/xenstore: fix return with locks held

Re: svn commit: r345726 - head/sys/dev/xen/blkfront

2020-06-18 Thread Roger Pau Monné
On Sat, Mar 30, 2019 at 07:20:28AM +, Pawel Jakub Dawidek wrote: > Author: pjd > Date: Sat Mar 30 07:20:28 2019 > New Revision: 345726 > URL: https://svnweb.freebsd.org/changeset/base/345726 > > Log: > Implement support for online disk capacity changes. > > Obtained from: Fudo

svn commit: r361580 - head/sys/dev/xen/control

2020-05-28 Thread Roger Pau Monné
Author: royger Date: Thu May 28 08:20:16 2020 New Revision: 361580 URL: https://svnweb.freebsd.org/changeset/base/361580 Log: xen/control: short circuit xctrl_on_watch_event on spurious event If there's no data to read from xenstore short-circuit xctrl_on_watch_event to return early,

svn commit: r361579 - head/sys/dev/xen/blkfront

2020-05-28 Thread Roger Pau Monné
Author: royger Date: Thu May 28 08:19:13 2020 New Revision: 361579 URL: https://svnweb.freebsd.org/changeset/base/361579 Log: xen/blkfront: use the correct type for disk sectors The correct type to use to represent disk sectors is blkif_sector_t (which is an uint64_t underneath). This

svn commit: r361578 - head/sys/x86/xen

2020-05-28 Thread Roger Pau Monné
Author: royger Date: Thu May 28 08:18:34 2020 New Revision: 361578 URL: https://svnweb.freebsd.org/changeset/base/361578 Log: xenpv: do not use low 1MB for Xen mappings on i386 On amd64 we already avoid using memory below 4GB in order to prevent clashes with MMIO regions, but i386 was

svn commit: r361500 - head/sys/amd64/amd64

2020-05-26 Thread Roger Pau Monné
Author: royger Date: Tue May 26 10:24:06 2020 New Revision: 361500 URL: https://svnweb.freebsd.org/changeset/base/361500 Log: xen-locore: fix size in GDT descriptor There was an off-by-one in the GDT descriptor size field used by the early Xen boot code. The GDT descriptor size should be

svn commit: r361274 - head/sys/dev/xen/evtchn

2020-05-20 Thread Roger Pau Monné
Author: royger Date: Wed May 20 11:01:10 2020 New Revision: 361274 URL: https://svnweb.freebsd.org/changeset/base/361274 Log: dev/xenstore: fix return with locks held Fix returning from xenstore device with locks held, which triggers the following panic: # cat /dev/xen/xenstore ^C

svn commit: r357616 - head/sys/dev/xen/console

2020-02-06 Thread Roger Pau Monné
Author: royger Date: Thu Feb 6 14:02:47 2020 New Revision: 357616 URL: https://svnweb.freebsd.org/changeset/base/357616 Log: xen/console: fix priority of Xen console Currently the Xen console is always attached with priority CN_REMOTE (highest), which means that when booting with a

svn commit: r357251 - stable/12/sys/x86/xen

2020-01-29 Thread Roger Pau Monné
Author: royger Date: Wed Jan 29 09:33:40 2020 New Revision: 357251 URL: https://svnweb.freebsd.org/changeset/base/357251 Log: MFC r354637: xen: fix dispatching of NMIs Modified: stable/12/sys/x86/xen/xen_apic.c Directory Properties: stable/12/ (props changed) Modified:

svn commit: r354637 - head/sys/x86/xen

2019-11-12 Thread Roger Pau Monné
Author: royger Date: Tue Nov 12 10:31:28 2019 New Revision: 354637 URL: https://svnweb.freebsd.org/changeset/base/354637 Log: xen: fix dispatching of NMIs Currently NMIs are sent over event channels, but that defeats the purpose of NMIs since event channels can be masked. Fix this by

Re: svn commit: r352925 - head/sys/dev/xen/control

2019-10-02 Thread Roger Pau Monné
On Tue, Oct 01, 2019 at 06:42:14PM -0700, Ravi Pokala wrote: > Hi Roger, > > If I'm understanding this diff correctly, all of (poweroff, reboot, suspend) > will use the common string "shutdown", rather than an event-specific string. > Is that what we want? I think there's some misunderstanding

svn commit: r352925 - head/sys/dev/xen/control

2019-10-01 Thread Roger Pau Monné
Author: royger Date: Tue Oct 1 08:21:41 2019 New Revision: 352925 URL: https://svnweb.freebsd.org/changeset/base/352925 Log: xen/ctrl: acknowledge all control requests Currently only suspend requests are acknowledged by writing an empty string back to the xenstore control node, but

Re: svn commit: r349423 - head/contrib/elftoolchain/elfcopy

2019-07-04 Thread Roger Pau Monné
On Wed, Jun 26, 2019 at 04:35:37PM +, Mark Johnston wrote: > Author: markj > Date: Wed Jun 26 16:35:37 2019 > New Revision: 349423 > URL: https://svnweb.freebsd.org/changeset/base/349423 > > Log: > elfcopy: Provide a size hint when creating the section string table. > > Use the input

svn commit: r347183 - head/sys/geom

2019-05-06 Thread Roger Pau Monné
Author: royger Date: Mon May 6 09:48:34 2019 New Revision: 347183 URL: https://svnweb.freebsd.org/changeset/base/347183 Log: geom: fix initialization order There's a race between the initialization of devsoftc.mtx (by devinit) and the creation of the geom worker thread g_run_events,

Re: svn commit: r346670 - head/sys/net

2019-05-02 Thread Roger Pau Monné
On Thu, May 02, 2019 at 08:14:08AM -0500, Kyle Evans wrote: > On Thu, May 2, 2019 at 7:54 AM Roger Pau Monné wrote: > > > > On Thu, May 02, 2019 at 04:58:39AM -0700, Cy Schubert wrote: > > > In message <2019050206.pfosaq73kgo6g...@air-de-roger.citrite.net>, &g

Re: svn commit: r346670 - head/sys/net

2019-05-02 Thread Roger Pau Monné
On Thu, May 02, 2019 at 04:58:39AM -0700, Cy Schubert wrote: > In message <2019050206.pfosaq73kgo6g...@air-de-roger.citrite.net>, > Roger Pa > u =?utf-8?B?TW9ubsOp?= writes: > > On Thu, Apr 25, 2019 at 12:44:08PM +, Kyle Evans wrote: > > Apr 26 16:23:57.662653 panic: mtx_lock() of spin

Re: svn commit: r346670 - head/sys/net

2019-05-02 Thread Roger Pau Monné
On Thu, Apr 25, 2019 at 12:44:08PM +, Kyle Evans wrote: > Author: kevans > Date: Thu Apr 25 12:44:08 2019 > New Revision: 346670 > URL: https://svnweb.freebsd.org/changeset/base/346670 > > Log: > tun/tap: close race between destroy/ioctl handler > > It seems that there should be a

svn commit: r343573 - in head/sys: x86/xen xen

2019-01-30 Thread Roger Pau Monné
Author: royger Date: Wed Jan 30 11:34:52 2019 New Revision: 343573 URL: https://svnweb.freebsd.org/changeset/base/343573 Log: xen: introduce a new way to setup event channel upcall The main differences with the currently implemented method are: - Requires a local APIC EOI, since it

svn commit: r340982 - stable/11/sys/x86/xen

2018-11-26 Thread Roger Pau Monné
Author: royger Date: Mon Nov 26 16:54:16 2018 New Revision: 340982 URL: https://svnweb.freebsd.org/changeset/base/340982 Log: MFC r338628: xen: limit the usage of PIRQs to a legacy PVH Dom0 Sponsored by: Citrix Systems R Modified: stable/11/sys/x86/xen/xen_intr.c Directory Properties:

svn commit: r338632 - head/sys/dev/xen/privcmd

2018-09-13 Thread Roger Pau Monné
Author: royger Date: Thu Sep 13 07:15:02 2018 New Revision: 338632 URL: https://svnweb.freebsd.org/changeset/base/338632 Log: xen: temporary disable SMAP when forwarding hypercalls from user-space The Xen page-table walker used to resolve the virtual addresses in the hypercalls will

svn commit: r338631 - in head/sys: x86/xen xen

2018-09-13 Thread Roger Pau Monné
Author: royger Date: Thu Sep 13 07:14:11 2018 New Revision: 338631 URL: https://svnweb.freebsd.org/changeset/base/338631 Log: xen: legacy PVH fixes for the new interrupt count Register interrupts using the PIC pic_register_sources method instead of doing it in apic_setup_io. This is now

svn commit: r338630 - head/sys/x86/x86

2018-09-13 Thread Roger Pau Monné
Author: royger Date: Thu Sep 13 07:13:13 2018 New Revision: 338630 URL: https://svnweb.freebsd.org/changeset/base/338630 Log: lapic: skip setting intrcnt if lapic is not present Instead of panicking. Legacy PVH mode doesn't provide a lapic, and since native_lapic_intrcnt is called

svn commit: r338629 - head/sys/x86/xen

2018-09-13 Thread Roger Pau Monné
Author: royger Date: Thu Sep 13 07:12:16 2018 New Revision: 338629 URL: https://svnweb.freebsd.org/changeset/base/338629 Log: xen: fix setting legacy PVH vcpu id The recommended way to obtain the vcpu id is using the cpuid instruction with a specific leaf value. This leaf value must be

svn commit: r338628 - head/sys/x86/xen

2018-09-13 Thread Roger Pau Monné
Author: royger Date: Thu Sep 13 07:11:11 2018 New Revision: 338628 URL: https://svnweb.freebsd.org/changeset/base/338628 Log: xen: limit the usage of PIRQs to a legacy PVH Dom0 That's the only mode in FreeBSD that requires the usage of PIRQs, so there's no need to attach the PIRQ PIC

svn commit: r338627 - head/sys/x86/xen

2018-09-13 Thread Roger Pau Monné
Author: royger Date: Thu Sep 13 07:09:41 2018 New Revision: 338627 URL: https://svnweb.freebsd.org/changeset/base/338627 Log: xen: fix initial kenv setup for legacy PVH When adding support for the new PVH mode the kenv handling was switched to use a boot time allocated scratch space,

svn commit: r338626 - head/sys/x86/xen

2018-09-13 Thread Roger Pau Monné
Author: royger Date: Thu Sep 13 07:08:31 2018 New Revision: 338626 URL: https://svnweb.freebsd.org/changeset/base/338626 Log: xen: remove xenpv_set_ids The vcpu_id for legacy PVH mode can be set from the output of cpuid, so there's no need to have a special function to set it. Also

svn commit: r338625 - head/sys/x86/xen

2018-09-13 Thread Roger Pau Monné
Author: royger Date: Thu Sep 13 07:07:13 2018 New Revision: 338625 URL: https://svnweb.freebsd.org/changeset/base/338625 Log: xen: fix PV IPI setup So that it's done when the vcpu_id has been set. For the BSP the vcpu_id is set at SUB_INTR, while for the APs it's done in

svn commit: r338624 - head/sys/x86/x86

2018-09-13 Thread Roger Pau Monné
Author: royger Date: Thu Sep 13 07:05:51 2018 New Revision: 338624 URL: https://svnweb.freebsd.org/changeset/base/338624 Log: msi: remove the check that interrupt sources have been added When running as a specific type of Xen guest the hypervisor won't provide any emulated IO-APICs or

svn commit: r338623 - head/sys/compat/x86bios

2018-09-13 Thread Roger Pau Monné
Author: royger Date: Thu Sep 13 07:04:00 2018 New Revision: 338623 URL: https://svnweb.freebsd.org/changeset/base/338623 Log: x86bios: use M_NOWAIT with mallocs Or else it triggers the following bug: APIC: CPU 6 has ACPI ID 6 APIC: CPU 7 has ACPI ID 7 panic: vm_wait in early boot

svn commit: r337960 - in head: . release release/scripts

2018-08-17 Thread Roger Pau Monné
Author: royger Date: Fri Aug 17 07:27:15 2018 New Revision: 337960 URL: https://svnweb.freebsd.org/changeset/base/337960 Log: build: skip the database check when generating install media There are several scripts and targets solely used to generate install media, make sure DB_FROM_SRC is

Re: svn commit: r336526 - head

2018-08-08 Thread Roger Pau Monné
On Thu, Jul 26, 2018 at 05:41:46PM +, Brooks Davis wrote: > On Thu, Jul 26, 2018 at 06:15:46PM +0200, Roger Pau Monn?? wrote: > > On Thu, Jul 26, 2018 at 09:05:18AM -0600, Ian Lepore wrote: > > > On Thu, 2018-07-26 at 16:54 +0200, Roger Pau Monn? wrote: > > > > On Thu, Jul 26, 2018 at

svn commit: r337452 - head

2018-08-08 Thread Roger Pau Monné
Author: royger Date: Wed Aug 8 07:58:29 2018 New Revision: 337452 URL: https://svnweb.freebsd.org/changeset/base/337452 Log: build: skip the database check for the distributeworld target distributeworld is used to generate install media, so it makes no sense to check the host database

svn commit: r336897 - head/sys/dev/xen/grant_table

2018-07-30 Thread Roger Pau Monné
Author: royger Date: Mon Jul 30 11:41:51 2018 New Revision: 336897 URL: https://svnweb.freebsd.org/changeset/base/336897 Log: xen/grants: fix deadlocks in the free callbacks This fixes the panic caused by deadlocking when grant-table free callbacks are used. The cause of the

svn commit: r336896 - head/sys/dev/xen/blkfront

2018-07-30 Thread Roger Pau Monné
Author: royger Date: Mon Jul 30 11:27:51 2018 New Revision: 336896 URL: https://svnweb.freebsd.org/changeset/base/336896 Log: xen-blkfront: fix memory leak in xbd_connect error path If gnttab_grant_foreign_access() fails for any of the indirection pages, the code breaks out of both the

svn commit: r336895 - head/sys/dev/xen/blkfront

2018-07-30 Thread Roger Pau Monné
Author: royger Date: Mon Jul 30 11:15:20 2018 New Revision: 336895 URL: https://svnweb.freebsd.org/changeset/base/336895 Log: xen-blkfront: fix length check Length is an unsigned integer, so checking against < 0 doesn't make sense. While there also make clear that a length of 0 always

Re: svn commit: r336526 - head

2018-07-26 Thread Roger Pau Monné
On Thu, Jul 26, 2018 at 09:05:18AM -0600, Ian Lepore wrote: > On Thu, 2018-07-26 at 16:54 +0200, Roger Pau Monné wrote: > > On Thu, Jul 26, 2018 at 08:49:12AM -0600, Ian Lepore wrote: > > > > > > On Thu, 2018-07-26 at 15:58 +0200, Roger Pau Monné wrote: > > > &

Re: svn commit: r336526 - head

2018-07-26 Thread Roger Pau Monné
On Thu, Jul 26, 2018 at 08:49:12AM -0600, Ian Lepore wrote: > On Thu, 2018-07-26 at 15:58 +0200, Roger Pau Monné wrote: > > On Fri, Jul 20, 2018 at 12:44:04AM +, Ian Lepore wrote: > > > > > > Author: ian > > > Date: Fri Jul 20 00:44:04 2018 > &g

Re: svn commit: r336526 - head

2018-07-26 Thread Roger Pau Monné
On Fri, Jul 20, 2018 at 12:44:04AM +, Ian Lepore wrote: > Author: ian > Date: Fri Jul 20 00:44:04 2018 > New Revision: 336526 > URL: https://svnweb.freebsd.org/changeset/base/336526 > > Log: > Add ntpd to the list of users/groups to check before installing. The Xen CI loop is getting this

Re: svn commit: r336475 - head/sys/xen/interface/arch-x86/hvm

2018-07-19 Thread Roger Pau Monné
On Thu, Jul 19, 2018 at 07:02:08AM -0700, Rodney W. Grimes wrote: > > Author: royger > > Date: Thu Jul 19 10:14:52 2018 > > New Revision: 336475 > > URL: https://svnweb.freebsd.org/changeset/base/336475 > > > > Log: > > xen: add missing file from r336474 > > > > Added: > >

svn commit: r336475 - head/sys/xen/interface/arch-x86/hvm

2018-07-19 Thread Roger Pau Monné
Author: royger Date: Thu Jul 19 10:14:52 2018 New Revision: 336475 URL: https://svnweb.freebsd.org/changeset/base/336475 Log: xen: add missing file from r336474 Added: head/sys/xen/interface/arch-x86/hvm/start_info.h (contents, props changed) Added:

svn commit: r336474 - in head/sys: amd64/amd64 x86/xen xen

2018-07-19 Thread Roger Pau Monné
Author: royger Date: Thu Jul 19 08:44:52 2018 New Revision: 336474 URL: https://svnweb.freebsd.org/changeset/base/336474 Log: xen: implement early init helper for PVHv2 In order to setup an initial environment and jump into the generic hammer_time initialization function. Some of the

svn commit: r336473 - in head/sys: x86/xen xen

2018-07-19 Thread Roger Pau Monné
Author: royger Date: Thu Jul 19 08:13:41 2018 New Revision: 336473 URL: https://svnweb.freebsd.org/changeset/base/336473 Log: xen: allow very early initialization of the hypercall page Allow the hypercall page to be initialized very early, even before vtophys is functional. Also make the

svn commit: r336472 - head/sys/dev/xen/pvcpu

2018-07-19 Thread Roger Pau Monné
Author: royger Date: Thu Jul 19 08:00:52 2018 New Revision: 336472 URL: https://svnweb.freebsd.org/changeset/base/336472 Log: xen: attach the PV CPU if no CPU device is present When booted as PVHv2, there's no ACPI CPU object, so attach the PV CPU device in order to take it's place.

svn commit: r336471 - head/sys/dev/xen/console

2018-07-19 Thread Roger Pau Monné
Author: royger Date: Thu Jul 19 07:58:24 2018 New Revision: 336471 URL: https://svnweb.freebsd.org/changeset/base/336471 Log: xen: do not limit PV console usage to PV guests The Xen PV console is also available to HVM and PVHv2 guests, so don't limit the console usage to PV guests only.

svn commit: r336470 - in head/sys: dev/xen/balloon dev/xen/console dev/xen/xenstore x86/xen xen xen/xenstore

2018-07-19 Thread Roger Pau Monné
Author: royger Date: Thu Jul 19 07:54:45 2018 New Revision: 336470 URL: https://svnweb.freebsd.org/changeset/base/336470 Log: xen: remove direct usage of HYPERVISOR_start_info HYPERVISOR_start_info is only available to PV and PVHv1 guests, HVM and PVHv2 guests get this data from HVM

svn commit: r336469 - in head/sys: amd64/amd64 xen/interface

2018-07-19 Thread Roger Pau Monné
Author: royger Date: Thu Jul 19 07:39:35 2018 New Revision: 336469 URL: https://svnweb.freebsd.org/changeset/base/336469 Log: xen: add PVHv2 entry point The PVHv2 entry point is fairly similar to the multiboot1 one. The kernel is started in protected mode with paging disabled. More

Re: svn commit: r335629 - in head: share/man/man4 sys/dev/vt/hw/vga

2018-06-28 Thread Roger Pau Monné
On Tue, Jun 26, 2018 at 10:18:39AM -0600, Ian Lepore wrote: > On Tue, 2018-06-26 at 08:55 -0700, Rodney W. Grimes wrote: > > > > > > On Tue, Jun 26, 2018 at 05:21:27AM +, Alexey Dokuchaev wrote: > > > > > > > > On Mon, Jun 25, 2018 at 08:43:51AM -0700, Rodney W. Grimes wrote: > > > > > > >

svn commit: r335668 - head/sys/x86/xen

2018-06-26 Thread Roger Pau Monné
Author: royger Date: Tue Jun 26 15:00:54 2018 New Revision: 335668 URL: https://svnweb.freebsd.org/changeset/base/335668 Log: xen: obtain vCPU ID from CPUID The Xen vCPU ID can be fetched from the cpuid instead of inferring it from the ACPI ID. Sponsored by: Citrix Systems R

svn commit: r335666 - head/sys/x86/xen

2018-06-26 Thread Roger Pau Monné
Author: royger Date: Tue Jun 26 14:39:27 2018 New Revision: 335666 URL: https://svnweb.freebsd.org/changeset/base/335666 Log: xen: limit the number of hypercall pages to 1 The interface already guarantees that the number of hypercall pages is always going to be 1, see the comment in

svn commit: r335664 - head/sys/dev/xen/netback

2018-06-26 Thread Roger Pau Monné
Author: royger Date: Tue Jun 26 14:07:11 2018 New Revision: 335664 URL: https://svnweb.freebsd.org/changeset/base/335664 Log: xen-netback: fix LOR lock order reversal: (sleepable after non-sleepable) 1st 0xfe00357ff538 xnb_softc (xen netback softc lock) @

Re: svn commit: r335629 - in head: share/man/man4 sys/dev/vt/hw/vga

2018-06-26 Thread Roger Pau Monné
On Tue, Jun 26, 2018 at 05:21:27AM +, Alexey Dokuchaev wrote: > On Mon, Jun 25, 2018 at 08:43:51AM -0700, Rodney W. Grimes wrote: > > > New Revision: 335629 > > > URL: https://svnweb.freebsd.org/changeset/base/335629 > > > > > > Log: > > > vt: add option to ignore NO_VGA flag in ACPI > > >

svn commit: r335629 - in head: share/man/man4 sys/dev/vt/hw/vga

2018-06-25 Thread Roger Pau Monné
Author: royger Date: Mon Jun 25 09:39:16 2018 New Revision: 335629 URL: https://svnweb.freebsd.org/changeset/base/335629 Log: vt: add option to ignore NO_VGA flag in ACPI To workaround buggy firmware that sets this flag when there's actually a VGA present. Reported and tested by:

svn commit: r335490 - head/sys/dev/xen/grant_table

2018-06-21 Thread Roger Pau Monné
Author: royger Date: Thu Jun 21 15:47:47 2018 New Revision: 335490 URL: https://svnweb.freebsd.org/changeset/base/335490 Log: xen: check if there are clients waiting in gnttab_end_foreign_access_references Without a call to check_free_callbacks() clients waiting for grant references

svn commit: r334315 - stable/11/sys/dev/xen/blkback

2018-05-29 Thread Roger Pau Monné
Author: royger Date: Tue May 29 07:51:24 2018 New Revision: 334315 URL: https://svnweb.freebsd.org/changeset/base/334315 Log: MFC r334027: xen-blkback: do not use state 3 Linux will not connect to a backend that's in state 3 (XenbusStateInitialised), it needs to be in state 2

svn commit: r334205 - head/sys/xen

2018-05-25 Thread Roger Pau Monné
Author: royger Date: Fri May 25 08:44:00 2018 New Revision: 334205 URL: https://svnweb.freebsd.org/changeset/base/334205 Log: xen: remove dead code from gnttab.h This code was left over when it was imported from Linux. The original committer thought that those functions would be

svn commit: r334147 - head/sys/x86/xen

2018-05-24 Thread Roger Pau Monné
Author: royger Date: Thu May 24 10:22:57 2018 New Revision: 334147 URL: https://svnweb.freebsd.org/changeset/base/334147 Log: xen/pvh: allocate dbg_stack Or else init_secondary will hit a page fault (or write garbage somewhere). Sponsored by: Citrix Systems R Modified:

svn commit: r334146 - head/sys/dev/xen/evtchn

2018-05-24 Thread Roger Pau Monné
Author: royger Date: Thu May 24 10:20:42 2018 New Revision: 334146 URL: https://svnweb.freebsd.org/changeset/base/334146 Log: xen/evtchn: fix LOR in evtchn device Remove the device from the list before unbinding it. Doing it in this order allows calling xen_intr_unbind without holding

svn commit: r334145 - head/sys/dev/xen/blkback

2018-05-24 Thread Roger Pau Monné
Author: royger Date: Thu May 24 10:19:54 2018 New Revision: 334145 URL: https://svnweb.freebsd.org/changeset/base/334145 Log: xen-blkback: don't unbind the interrupt while holding the lock There's no need to perform the interrupt unbind while holding the blkback lock, and doing so leads

svn commit: r334144 - head/sys/dev/xen/xenstore

2018-05-24 Thread Roger Pau Monné
Author: royger Date: Thu May 24 10:18:31 2018 New Revision: 334144 URL: https://svnweb.freebsd.org/changeset/base/334144 Log: dev/xenstore: prevent transaction hijacking The user-space xenstore device is currently lacking a check to make sure that the caller is only using transaction ids

svn commit: r334142 - head/sys/dev/xen/xenstore

2018-05-24 Thread Roger Pau Monné
Author: royger Date: Thu May 24 10:17:49 2018 New Revision: 334142 URL: https://svnweb.freebsd.org/changeset/base/334142 Log: dev/xenstore: add support for watches Allow user-space applications to register watches using the xenstore device. This is needed in order to run toolstack

svn commit: r334141 - head/sys/dev/xen/xenstore

2018-05-24 Thread Roger Pau Monné
Author: royger Date: Thu May 24 10:17:03 2018 New Revision: 334141 URL: https://svnweb.freebsd.org/changeset/base/334141 Log: xenstore: don't wait with the PCATCH flag Due to the current synchronous xenstore implementation in FreeBSD, we cannot return from xs_read_reply without reading a

svn commit: r334140 - head/sys/dev/xen/xenstore

2018-05-24 Thread Roger Pau Monné
Author: royger Date: Thu May 24 10:16:11 2018 New Revision: 334140 URL: https://svnweb.freebsd.org/changeset/base/334140 Log: xenstore: remove the suspend sx lock There's no need to prevent suspend while doing xenstore transactions, callers of transactions are supposed to be prepared for

svn commit: r334027 - head/sys/dev/xen/blkback

2018-05-22 Thread Roger Pau Monné
Author: royger Date: Tue May 22 08:51:16 2018 New Revision: 334027 URL: https://svnweb.freebsd.org/changeset/base/334027 Log: xen-blkback: do not use state 3 (XenbusStateInitialised) Linux will not connect to a backend that's in state 3 (XenbusStateInitialised), it needs to be in state 2

svn commit: r333170 - head/sys/x86/xen

2018-05-02 Thread Roger Pau Monné
Author: royger Date: Wed May 2 10:20:55 2018 New Revision: 333170 URL: https://svnweb.freebsd.org/changeset/base/333170 Log: xen: fix formatting of xen_init_ops No functional change Sponsored by: Citrix Systems R Modified: head/sys/x86/xen/pv.c Modified: head/sys/x86/xen/pv.c

svn commit: r333169 - in head/sys: dev/xen/gntdev xen

2018-05-02 Thread Roger Pau Monné
Author: royger Date: Wed May 2 10:19:17 2018 New Revision: 333169 URL: https://svnweb.freebsd.org/changeset/base/333169 Log: xen: fix gntdev Current interface to the gntdev in FreeBSD is wrong, and mostly worked out of luck before the PTI FreeBSD fixes, when kernel and user-space

svn commit: r333106 - stable/10/sys/net

2018-04-30 Thread Roger Pau Monné
Author: royger Date: Mon Apr 30 08:39:23 2018 New Revision: 333106 URL: https://svnweb.freebsd.org/changeset/base/333106 Log: MFC 270041: net: move interface removal notification up in if_detach_internal Requested by: dexuan Modified: stable/10/sys/net/if.c Directory Properties:

Re: svn commit: r332092 - in head/sys: amd64/amd64 sys x86/x86

2018-04-09 Thread Roger Pau Monné
On Fri, Apr 06, 2018 at 09:17:09AM -0700, Rodney W. Grimes wrote: > [ Charset UTF-8 unsupported, converting... ] > > Author: royger > > Date: Fri Apr 6 11:20:06 2018 > > New Revision: 332092 > > URL: https://svnweb.freebsd.org/changeset/base/332092 > > > > Log: > > remove GiB/MiB macros from

svn commit: r332109 - in head/sys: amd64/amd64 x86/x86

2018-04-06 Thread Roger Pau Monné
Author: royger Date: Fri Apr 6 16:22:14 2018 New Revision: 332109 URL: https://svnweb.freebsd.org/changeset/base/332109 Log: x86: fix trampoline memory allocation after r332073 Add the missing breaks in the for loops, in order to exit the loop when a suitable entry is found. Also

svn commit: r332092 - in head/sys: amd64/amd64 sys x86/x86

2018-04-06 Thread Roger Pau Monné
Author: royger Date: Fri Apr 6 11:20:06 2018 New Revision: 332092 URL: https://svnweb.freebsd.org/changeset/base/332092 Log: remove GiB/MiB macros from param.h And instead define them in the files where they are used. Requested by: bde Modified: head/sys/amd64/amd64/mp_machdep.c

Re: svn commit: r332072 - head/sys/sys

2018-04-06 Thread Roger Pau Monné
On Fri, Apr 06, 2018 at 03:12:08AM +1000, Bruce Evans wrote: > On Thu, 5 Apr 2018, Warner Losh wrote: > > > On Thu, Apr 5, 2018 at 9:46 AM, Roger Pau Monné <roy...@freebsd.org> wrote: > > > > > On Thu, Apr 05, 2018 at 09:32:57AM -0600, Ian Lepore wrote: > >

Re: svn commit: r332072 - head/sys/sys

2018-04-05 Thread Roger Pau Monné
On Thu, Apr 05, 2018 at 09:58:36AM -0600, Warner Losh wrote: > On Thu, Apr 5, 2018 at 9:46 AM, Roger Pau Monné <roy...@freebsd.org> wrote: > > > On Thu, Apr 05, 2018 at 09:32:57AM -0600, Ian Lepore wrote: > > > On Thu, 2018-04-05 at 14:31 +, Roger Pau Monné wr

Re: svn commit: r332072 - head/sys/sys

2018-04-05 Thread Roger Pau Monné
On Thu, Apr 05, 2018 at 09:32:57AM -0600, Ian Lepore wrote: > On Thu, 2018-04-05 at 14:31 +0000, Roger Pau Monné wrote: > > Author: royger > > Date: Thu Apr  5 14:31:54 2018 > > New Revision: 332072 > > URL: https://svnweb.freebsd.org/changeset/base/332072 > > >

svn commit: r332073 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include x86/include x86/x86

2018-04-05 Thread Roger Pau Monné
Author: royger Date: Thu Apr 5 14:39:51 2018 New Revision: 332073 URL: https://svnweb.freebsd.org/changeset/base/332073 Log: x86: improve reservation of AP trampoline memory So that it doesn't rely on physmap[1] containing an address below 1MiB. Instead scan the full physmap and search

svn commit: r332072 - head/sys/sys

2018-04-05 Thread Roger Pau Monné
Author: royger Date: Thu Apr 5 14:31:54 2018 New Revision: 332072 URL: https://svnweb.freebsd.org/changeset/base/332072 Log: introduce GiB and MiB macros This macros convert from GiB or MiB into bytes. Sponsored by: Citrix Systems R Modified: head/sys/sys/param.h Modified:

svn commit: r330835 - in head: share/man/man4 sys/x86/isa

2018-03-13 Thread Roger Pau Monné
Author: royger Date: Tue Mar 13 09:42:33 2018 New Revision: 330835 URL: https://svnweb.freebsd.org/changeset/base/330835 Log: at_rtc: check in ACPI FADT boot flags if the RTC is present Or else disable the device. Note that the detection can be bypassed by setting the hw.atrtc.enable

svn commit: r330834 - head/sys/dev/vt/hw/vga

2018-03-13 Thread Roger Pau Monné
Author: royger Date: Tue Mar 13 09:38:53 2018 New Revision: 330834 URL: https://svnweb.freebsd.org/changeset/base/330834 Log: vt_vga: check if VGA is available from ACPI FADT table On x86 the IA-PC Boot Flags in the FADT can signal whether VGA is available or not. Sponsored by:

svn commit: r329389 - head/sys/x86/xen

2018-02-16 Thread Roger Pau Monné
Author: royger Date: Fri Feb 16 18:04:27 2018 New Revision: 329389 URL: https://svnweb.freebsd.org/changeset/base/329389 Log: xen/pv: remove the attach of the ISA bus from the Xen PV bus There's no need to attach the ISA bus from the Xen PV one. Sponsored by: Citrix Systems

svn commit: r329219 - head

2018-02-13 Thread Roger Pau Monné
Author: royger Date: Tue Feb 13 16:25:43 2018 New Revision: 329219 URL: https://svnweb.freebsd.org/changeset/base/329219 Log: list myself in the MAINTAINERS file for Xen bits Modified: head/MAINTAINERS Modified: head/MAINTAINERS

svn commit: r329060 - head/stand/common

2018-02-09 Thread Roger Pau Monné
Author: royger Date: Fri Feb 9 10:20:16 2018 New Revision: 329060 URL: https://svnweb.freebsd.org/changeset/base/329060 Log: loader: fix endianness conversion r328536 broke symbol loading on amd64 at least (and probably other arches). r328826 contained the problem to ppc only by adding

Re: svn commit: r328536 - in head/stand: common powerpc/kboot

2018-02-08 Thread Roger Pau Monné
Ping? Ed committed a band-aid, but we need to get this fixed. On Wed, Jan 31, 2018 at 03:20:46PM +, Roger Pau Monné wrote: > On Mon, Jan 29, 2018 at 09:24:28AM +, Wojciech Macek wrote: > > Modified: head/stand/common/l

Re: svn commit: r328536 - in head/stand: common powerpc/kboot

2018-01-31 Thread Roger Pau Monné
On Mon, Jan 29, 2018 at 09:24:28AM +, Wojciech Macek wrote: > Modified: head/stand/common/load_elf.c > == > --- head/stand/common/load_elf.c Mon Jan 29 09:21:08 2018 > (r328535) > +++

Re: svn commit: r328536 - in head/stand: common powerpc/kboot

2018-01-31 Thread Roger Pau Monné
On Mon, Jan 29, 2018 at 09:24:28AM +, Wojciech Macek wrote: > Modified: head/stand/common/load_elf.c > == > --- head/stand/common/load_elf.c Mon Jan 29 09:21:08 2018 > (r328535) > +++

svn commit: r328199 - in head/sys: amd64/amd64 i386/i386

2018-01-20 Thread Roger Pau Monné
Author: royger Date: Sat Jan 20 14:59:37 2018 New Revision: 328199 URL: https://svnweb.freebsd.org/changeset/base/328199 Log: xen: fix IDT setup after PTI On amd64 the IDT handler was not set correctly when using PTI. While there also fix the selectors to SEL_KPL. Obtained from:

svn commit: r325556 - in head/sys/boot: arm/uboot efi/loader i386/loader i386/zfsloader mips/beri/loader mips/uboot powerpc/kboot powerpc/ofw powerpc/ps3 powerpc/uboot sparc64/loader userboot/userboot

2017-11-08 Thread Roger Pau Monné
Author: royger Date: Wed Nov 8 14:44:45 2017 New Revision: 325556 URL: https://svnweb.freebsd.org/changeset/base/325556 Log: loader: set options before including bsd.init.mk bsd.init.mk ends up including defs.mk so the per-arch options must be set before including defs.mk, or else the

svn commit: r325332 - head/sys/boot/i386/loader

2017-11-02 Thread Roger Pau Monné
Author: royger Date: Thu Nov 2 18:13:26 2017 New Revision: 325332 URL: https://svnweb.freebsd.org/changeset/base/325332 Log: loader: re-enable gzip support for x86 r324653 inadvertently disabled default gzip support on x86, re-enable. Sponsored by: Citrix System R Reviewed

svn commit: r323154 - head/sys/x86/acpica

2017-09-04 Thread Roger Pau Monné
Author: royger Date: Mon Sep 4 10:08:42 2017 New Revision: 323154 URL: https://svnweb.freebsd.org/changeset/base/323154 Log: acpi/srat: zero the SRAT cpu array Fix from fallout introduced in r322348 that moved the cpus array to a dynamic allocation without zeroing the area.

svn commit: r322457 - head/sys/x86/acpica

2017-08-13 Thread Roger Pau Monné
Author: royger Date: Sun Aug 13 14:50:38 2017 New Revision: 322457 URL: https://svnweb.freebsd.org/changeset/base/322457 Log: srat: use pmap_unmapbios To match the pmap_mapbios. Reported by: jhb MFC with: r322403 Modified: head/sys/x86/acpica/srat.c Modified:

svn commit: r322403 - head/sys/x86/acpica

2017-08-11 Thread Roger Pau Monné
Author: royger Date: Fri Aug 11 14:19:55 2017 New Revision: 322403 URL: https://svnweb.freebsd.org/changeset/base/322403 Log: acpi/srat: fix build without DMAP Use pmap_mapbios to map memory used to store the cpus array. Reported by: lwhsu X-MFC-with: r322348 Modified:

Re: svn commit: r322347 - in head/sys/x86: acpica include x86 xen

2017-08-10 Thread Roger Pau Monné
On Thu, Aug 10, 2017 at 10:20:59AM -0400, Ed Maste wrote: > On 10 August 2017 at 05:15, Roger Pau Monné <roy...@freebsd.org> wrote: > > Author: royger > > Date: Thu Aug 10 09:15:18 2017 > > New Revision: 322347 > > URL: https://svnweb.freebsd.org/

svn commit: r322372 - in head/sys/x86: acpica x86

2017-08-10 Thread Roger Pau Monné
Author: royger Date: Thu Aug 10 17:46:57 2017 New Revision: 322372 URL: https://svnweb.freebsd.org/changeset/base/322372 Log: mptable: fix i386 build failure Reported by: emaste X-MFC-with: r322347 Modified: head/sys/x86/acpica/madt.c head/sys/x86/x86/mptable.c Modified:

svn commit: r322350 - head/usr.bin/calendar/calendars

2017-08-10 Thread Roger Pau Monné
Author: royger Date: Thu Aug 10 09:17:16 2017 New Revision: 322350 URL: https://svnweb.freebsd.org/changeset/base/322350 Log: calendars: add myself to the FreeBSD calendar Reported by: mckusick Modified: head/usr.bin/calendar/calendars/calendar.freebsd Modified:

svn commit: r322349 - in head/sys/x86: acpica include x86

2017-08-10 Thread Roger Pau Monné
Author: royger Date: Thu Aug 10 09:16:40 2017 New Revision: 322349 URL: https://svnweb.freebsd.org/changeset/base/322349 Log: x86: bump MAX_APIC_ID to 512 Introduce a new define to take int account the xAPIC ID limit, for systems where x2APIC is not available/reliable. Also change

svn commit: r322348 - in head/sys/x86: acpica include x86

2017-08-10 Thread Roger Pau Monné
Author: royger Date: Thu Aug 10 09:16:03 2017 New Revision: 322348 URL: https://svnweb.freebsd.org/changeset/base/322348 Log: x86: make the arrays that depend on MAX_APIC_ID dynamic So that MAX_APIC_ID can be bumped without wasting memory. Note that the usage of MAX_APIC_ID in the

svn commit: r322347 - in head/sys/x86: acpica include x86 xen

2017-08-10 Thread Roger Pau Monné
Author: royger Date: Thu Aug 10 09:15:18 2017 New Revision: 322347 URL: https://svnweb.freebsd.org/changeset/base/322347 Log: apic_enumerator: only set mp_ncpus and mp_maxid at probe cpus phase Populate the lapics arrays and call cpu_add/lapic_create in the setup phase instead. Also

svn commit: r321863 - head/sys/dev/pci

2017-08-01 Thread Roger Pau Monné
Author: royger Date: Tue Aug 1 10:47:44 2017 New Revision: 321863 URL: https://svnweb.freebsd.org/changeset/base/321863 Log: pci: fix write order when sizing BARs According to the PCI Local Specification rev. 3.0 in case of a 64-bit BAR both the low and the high parts of the register

Re: svn commit: r319491 - head/sys/dev/xen/netfront

2017-06-02 Thread Roger Pau Monné
On Fri, Jun 02, 2017 at 07:03:31AM +, Colin Percival wrote: > Author: cperciva > Date: Fri Jun 2 07:03:31 2017 > New Revision: 319491 > URL: https://svnweb.freebsd.org/changeset/base/319491 > > Log: > Skip setting the MTU in the netfront driver (xn# devices) if the new MTU > is the same

svn commit: r319124 - stable/11/usr.sbin/bsdinstall/scripts

2017-05-29 Thread Roger Pau Monné
Author: royger Date: Mon May 29 11:37:08 2017 New Revision: 319124 URL: https://svnweb.freebsd.org/changeset/base/319124 Log: MFC r318632, r318633: bsdinstall: mount is not needed for the ZFS install case bsdinstall: do not use distextract in scripted mode Modified:

svn commit: r318919 - stable/11/sys/dev/xen/netfront

2017-05-26 Thread Roger Pau Monné
Author: royger Date: Fri May 26 08:59:16 2017 New Revision: 318919 URL: https://svnweb.freebsd.org/changeset/base/318919 Log: MFC r318523, r318631: xen/netfront: don't drop the ring RX lock with inconsistent ring state xen/netfront: don't drop the RX lock in xn_rxeof Modified:

svn commit: r318918 - stable/11/sys/dev/xen/blkfront

2017-05-26 Thread Roger Pau Monné
Author: royger Date: Fri May 26 08:57:00 2017 New Revision: 318918 URL: https://svnweb.freebsd.org/changeset/base/318918 Log: MFC r318520: xen/blkfront: correctly detach a disk with active users Modified: stable/11/sys/dev/xen/blkfront/blkfront.c Directory Properties: stable/11/

  1   2   3   4   >