[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for-4.18] docs/sphinx: Lifecycle of a domid


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 17 Oct 2023 12:21:15 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hCgZxeitP2+HCZ+vg9RhnABHm13mpgjxXdjuE67eH1s=; b=DfRyMnU4F5F+NClZOzm+5oAmQLh9NCFUtKICz3lGboN5hvhEws+/7XBFZ7jNMOdteuMNwNSMb1QdP89Jt4OYif514hdzB+zf0DoYfQNmjrdQlnpcbgXp/1Z+gut5NcilVxXeHeIbiSCopWJlFjlfsCtk+tqhr4OV9LxyI7wRQv5eYn4ISuqfUcY3iuWKtedjnDIql5w7h7g/EFtgNQhtcl990SyTzKTYWQ5Gy7kuJUlz3K8aHBqaoqtffCa1VZ2LthBcjCRutI2HfytaULg8QKM6XCSQpuIJph7e7+k5E9L4TPUvuse1nK2GUGHtgIBnOW5NGGEgROLBfWMOmeR8hw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WjHslxwUOJmbYA/JqWLARgSwMkkZSrglf4y2abPYDwoHJrxh1R7C6HU3a+oX/12IthbToiW/PoYWWlwLC5V4oy6BJyZxUAPnYv3rWYfcwqM95HZv+pN8r1kXjfJXyNNdKgd1XAUNXhCl1RvHG5PhprXRBZN5Ut2JiBlsN0SSrOHUWTm37LQMw0Kqd3VHSh29T3mKyzq+VHgUiFtx9Zpc2sLmwZiCTK5AX5qgtIFia6KvxLVOEwgXw4XfcmLlDHZXE527gtlRMjK4lGngg4fub99ouxpusqPGnXtvIZ7nPXmCsRC53b1912O7bXxLxTxqTQDT0Yl68CuMCVpdWU2PwA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 17 Oct 2023 10:21:30 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 17.10.2023 12:15, Andrew Cooper wrote:
> On 17/10/2023 7:34 am, Jan Beulich wrote:
>> On 16.10.2023 18:24, Andrew Cooper wrote:
>>> +Termination
>>> +-----------
>>> +
>>> +The VM runs for a period of time, but eventually stops.  It can stop for a
>>> +number of reasons, including:
>>> +
>>> + * Directly at the guest kernel's request, via the ``SCHEDOP_shutdown``
>>> +   hypercall.  The hypercall also includes the reason for the shutdown,
>>> +   e.g. ``poweroff``, ``reboot`` or ``crash``.
>>> +
>>> + * Indirectly from certain states.  E.g. executing a ``HLT`` instruction 
>>> with
>>> +   interrupts disabled is interpreted as a shutdown request as it is a 
>>> common
>>> +   code pattern for fatal error handling when no better options are 
>>> available.
>> HLT (note btw that this is x86 and HVM specific and hence may want mentioning
>> as such) is interpreted this way only if all other vCPU-s are also "down"
>> already.
>>
>>> + * Indirectly from fatal exceptions.  In some states, execution is unable 
>>> to
>>> +   continue, e.g. Triple Fault on x86.
>> Nit: This again is HVM specific.
> 
> Triple fault, maybe.  fatal exceptions terminating the VM, no.
> 
> For both, these details are not important for the document.  This is an
> list of examples, not an exhaustive list.

Of course. But I would recommend to avoid having examples which don't
describe technical details correctly.

>>> +Destruction
>>> +-----------
>>> +
>>> +The domain object in Xen is reference counted, and survives until all
>>> +references are dropped.
>>> +
>>> +The ``@releaseDomain`` watch is to inform all entities that hold a 
>>> reference
>>> +on the domain to clean up.  This may include:
>>> +
>>> + * Paravirtual driver backends having a grant map of the shared ring with 
>>> the
>>> +   frontend.
>> Beyond the shared ring(s), other (data) pages may also still have mappings.
> 
> Yes, but again, this is just a examples.  Other data pages should only
> be mapped while data is in flight.

Hmm, blkif's persistent grants are explicitly not like that. All I'm asking
for here is to insert another "e.g."

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.