| a7650787 | 25-Jun-2020 |
Roger Pau Monne <[email protected]> |
xen/privcmd: implement the restrict ioctl
Use an interface compatible with the Linux one so that the user-space libraries already using the Linux interface can be used without much modifications.
T
xen/privcmd: implement the restrict ioctl
Use an interface compatible with the Linux one so that the user-space libraries already using the Linux interface can be used without much modifications.
This allows an open privcmd instance to limit against which domains it can act upon.
Sponsored by: Citrix Systems R&D
show more ...
|
| 658860e2 | 23-Jun-2020 |
Roger Pau Monne <[email protected]> |
xen/privcmd: implement the map resource ioctl
The interface is mostly the same as the Linux ioctl, so that we don't need to modify the user-space libraries that make use of it.
The ioctl is just a
xen/privcmd: implement the map resource ioctl
The interface is mostly the same as the Linux ioctl, so that we don't need to modify the user-space libraries that make use of it.
The ioctl is just a proxy for the XENMEM_acquire_resource hypercall.
Sponsored by: Citrix Systems R&D
show more ...
|
| 4e4e43dc | 25-Nov-2020 |
Roger Pau Monné <[email protected]> |
xen: allow limiting the amount of duplicated pending xenstore watches
Xenstore watches received are queued in a list and processed in a deferred thread. Such queuing was done without any checking, s
xen: allow limiting the amount of duplicated pending xenstore watches
Xenstore watches received are queued in a list and processed in a deferred thread. Such queuing was done without any checking, so a guest could potentially trigger a resource starvation against the FreeBSD kernel if such kernel is watching any user-controlled xenstore path.
Allowing limiting the amount of pending events a watch can accumulate to prevent a remote guest from triggering this resource starvation issue.
For the PV device backends and frontends this limitation is only applied to the other end /state node, which is limited to 1 pending event, the rest of the watched paths can still have unlimited pending watches because they are either local or controlled by a privileged domain.
The xenstore user-space device gets special treatment as it's not possible for the kernel to know whether the paths being watched by user-space processes are controlled by a guest domain. For this reason watches set by the xenstore user-space device are limited to 1000 pending events. Note this can be modified using the max_pending_watch_events sysctl of the device.
This is XSA-349.
Sponsored by: Citrix Systems R&D MFC after: 3 days
show more ...
|
| b0663c33 | 19-Jul-2018 |
Roger Pau Monné <[email protected]> |
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 code is shared with PVHv1, while other
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 code is shared with PVHv1, while other code is PVHv2 specific.
This allows booting FreeBSD as a PVHv2 DomU and Dom0.
Sponsored by: Citrix Systems R&D
show more ...
|
| 07c2711f | 19-Jul-2018 |
Roger Pau Monné <[email protected]> |
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 function global so it can be called
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 function global so it can be called by other files.
This will be needed in order to perform the early bringup on PVHv2 guests.
Sponsored by: Citrix Systems R&D
show more ...
|
| cfa0b7b8 | 19-Jul-2018 |
Roger Pau Monné <[email protected]> |
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 parameters that are fetched using a hype
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 parameters that are fetched using a hypercall.
Instead provide a set of helper functions that should be used to fetch this data. The helper functions have different implementations depending on whether FreeBSD is running as PVHv1 or HVM/PVHv2 guest type.
This helps to cleanup generic Xen code by removing quite a lot of xen_pv_domain and xen_hvm_domain macro usages.
Sponsored by: Citrix Systems R&D
show more ...
|
| 41716b8d | 07-Mar-2017 |
Roger Pau Monné <[email protected]> |
xenstore: fix suspension when using the xenstore device
Lock the xenstore request mutex when suspending user-space processes, in order to prevent any process from holding this lock when going into s
xenstore: fix suspension when using the xenstore device
Lock the xenstore request mutex when suspending user-space processes, in order to prevent any process from holding this lock when going into suspension, or else the xenstore suspend process is going to deadlock.
Submitted by: Liuyingdong <[email protected]> Reviewed by: royger MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D9638
show more ...
|