[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 2/6] xen: backends: touch some XenStore nodes only if devi
|
From: |
Volodymyr Babchuk |
|
Subject: |
Re: [PATCH v2 2/6] xen: backends: touch some XenStore nodes only if device... |
|
Date: |
Wed, 22 Nov 2023 22:50:59 +0000 |
|
User-agent: |
mu4e 1.10.7; emacs 29.1 |
Hi Paul,
Paul Durrant <xadimgnik@gmail.com> writes:
> On 21/11/2023 22:10, Volodymyr Babchuk wrote:
>> was created by QEMU
>> Xen PV devices in QEMU can be created in two ways: either by QEMU
>> itself, if they were passed via command line, or by Xen toolstack. In
>> the latter case, QEMU scans XenStore entries and configures devices
>> accordingly.
>> In the second case we don't want QEMU to write/delete front-end
>> entries for two reasons: it might have no access to those entries if
>> it is running in un-privileged domain and it is just incorrect to
>> overwrite entries already provided by Xen toolstack, because toolstack
>> manages those nodes. For example, it might read backend- or frontend-
>> state to be sure that they are both disconnected and it is safe to
>> destroy a domain.
>> This patch checks presence of xendev->backend to check if Xen PV
>> device is acting as a backend (i.e. it was configured by Xen
>
> Technally *all* XenDevice objects are backends.
>
Yes, you are right of course. I'll rephrase this paragraph in the next
version.
--
WBR, Volodymyr
- Re: [PATCH v2 1/6] hw/xen: Set XenBackendInstance in the XenDevice before realizing it, (continued)
[PATCH v2 2/6] xen: backends: touch some XenStore nodes only if device..., Volodymyr Babchuk, 2023/11/21
Re: [PATCH v2 2/6] xen: backends: touch some XenStore nodes only if device..., Paul Durrant, 2023/11/22
[PATCH v2 5/6] xen_arm: Set mc->max_cpus to GUEST_MAX_VCPUS in xen_arm_init(), Volodymyr Babchuk, 2023/11/21
[PATCH v2 4/6] xen_pvdev: Do not assume Dom0 when creating a directory, Volodymyr Babchuk, 2023/11/21
- Re: [PATCH v2 4/6] xen_pvdev: Do not assume Dom0 when creating a directory, Paul Durrant, 2023/11/22
- Re: [PATCH v2 4/6] xen_pvdev: Do not assume Dom0 when creating a directory, Stefano Stabellini, 2023/11/22
- Re: [PATCH v2 4/6] xen_pvdev: Do not assume Dom0 when creating a directory, David Woodhouse, 2023/11/22
- Re: [PATCH v2 4/6] xen_pvdev: Do not assume Dom0 when creating a directory, Stefano Stabellini, 2023/11/22
- Re: [PATCH v2 4/6] xen_pvdev: Do not assume Dom0 when creating a directory, David Woodhouse, 2023/11/22
- Re: [PATCH v2 4/6] xen_pvdev: Do not assume Dom0 when creating a directory, Stefano Stabellini, 2023/11/22