From: Juergen Gross <jgross@suse.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: tim@xen.org, sstabellini@kernel.org, George.Dunlap@eu.citrix.com,
andrew.cooper3@citrix.com, ian.jackson@eu.citrix.com,
xen-devel@lists.xen.org, jbeulich@suse.com
Subject: Re: [PATCH v2 2/8] xen: clean up grant_table.h
Date: Wed, 6 Sep 2017 12:12:43 +0200 [thread overview]
Message-ID: <b35a11de-235c-418f-6b11-2adf9a4b9fb5@suse.com> (raw)
In-Reply-To: <20170906101123.uelbaafh6o5rhaq5@citrix.com>
On 06/09/17 12:11, Wei Liu wrote:
> On Wed, Sep 06, 2017 at 10:26:26AM +0200, Juergen Gross wrote:
>> +struct grant_table {
>> + /*
>> + * Lock protecting updates to grant table state (version, active
>> + * entry list, etc.)
>> + */
>> + percpu_rwlock_t lock;
>> + /* Table size. Number of frames shared with guest */
>> + unsigned int nr_grant_frames;
>> + /* Shared grant table (see include/public/grant_table.h). */
>> + union {
>> + void **shared_raw;
>> + struct grant_entry_v1 **shared_v1;
>> + union grant_entry_v2 **shared_v2;
>> + };
>> + /* Number of grant status frames shared with guest (for version 2) */
>> + unsigned int nr_status_frames;
>> + /* State grant table (see include/public/grant_table.h). */
>> + grant_status_t **status;
>> + /* Active grant table. */
>> + struct active_grant_entry **active;
>> + /* Mapping tracking table per vcpu. */
>> + struct grant_mapping **maptrack;
>> + unsigned int maptrack_limit;
>> + /* Lock protecting the maptrack limit */
>> + spinlock_t maptrack_lock;
>> + /* The defined versions are 1 and 2. Set to 0 if we don't know
>> + what version to use yet. */
>
> Could you please fix the style of the comment?
Okay.
Juergen
>
> Otherwise:
> Reviewed-by: Wei Liu <wei.liu2@citrix.com>
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-09-06 10:12 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-06 8:26 [PATCH v2 0/8] xen: better grant v2 support Juergen Gross
2017-09-06 8:26 ` [PATCH v2 1/8] xen: move XENMAPSPACE_grant_table code into grant_table.c Juergen Gross
2017-09-06 8:34 ` Paul Durrant
2017-09-06 9:31 ` Juergen Gross
2017-09-06 10:04 ` Wei Liu
2017-09-06 8:26 ` [PATCH v2 2/8] xen: clean up grant_table.h Juergen Gross
2017-09-06 8:37 ` Paul Durrant
2017-09-06 10:11 ` Wei Liu
2017-09-06 10:12 ` Juergen Gross [this message]
2017-09-06 8:26 ` [PATCH v2 3/8] xen: delay allocation of grant table sub structures Juergen Gross
2017-09-06 8:44 ` Paul Durrant
2017-09-06 9:42 ` Juergen Gross
2017-09-06 9:43 ` Paul Durrant
2017-09-06 8:26 ` [PATCH v2 4/8] xen: make grant resource limits per domain Juergen Gross
2017-09-06 9:10 ` Paul Durrant
2017-09-06 9:42 ` Juergen Gross
2017-09-06 8:26 ` [PATCH v2 5/8] xen: double default grant frame limit for huge hosts Juergen Gross
2017-09-06 9:12 ` Paul Durrant
2017-09-06 8:26 ` [PATCH v2 6/8] xen: add new domctl hypercall to set grant table resource limits Juergen Gross
2017-09-06 9:17 ` Paul Durrant
2017-09-06 9:43 ` Juergen Gross
2017-09-06 8:26 ` [PATCH v2 7/8] libxc: add libxc support for setting " Juergen Gross
2017-09-06 8:26 ` [PATCH v2 8/8] libxl: add libxl " Juergen Gross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b35a11de-235c-418f-6b11-2adf9a4b9fb5@suse.com \
--to=jgross@suse.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=sstabellini@kernel.org \
--cc=tim@xen.org \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).