From: Paul Durrant <xadimgnik@gmail.com>
To: "'Jan Beulich'" <jbeulich@suse.com>
Cc: xen-devel@lists.xenproject.org,
"'Ian Jackson'" <ian.jackson@eu.citrix.com>,
"'Wei Liu'" <wl@xen.org>,
"'Andrew Cooper'" <andrew.cooper3@citrix.com>,
"'George Dunlap'" <george.dunlap@citrix.com>,
"'Julien Grall'" <julien@xen.org>,
"'Stefano Stabellini'" <sstabellini@kernel.org>,
"'Roger Pau Monné'" <roger.pau@citrix.com>
Subject: RE: [EXTERNAL] [PATCH v7 8/9] x86/time: add a domain context record for tsc_info...
Date: Fri, 28 Aug 2020 17:36:03 +0100 [thread overview]
Message-ID: <001201d67d59$5249add0$f6dd0970$@xen.org> (raw)
In-Reply-To: <eabd43d5-f220-2a96-fda6-ababffc4c3f9@suse.com>
> -----Original Message-----
> From: Jan Beulich <jbeulich@suse.com>
> Sent: 28 August 2020 16:53
> To: paul@xen.org
> Cc: xen-devel@lists.xenproject.org; 'Ian Jackson' <ian.jackson@eu.citrix.com>; 'Wei Liu' <wl@xen.org>;
> 'Andrew Cooper' <andrew.cooper3@citrix.com>; 'George Dunlap' <george.dunlap@citrix.com>; 'Julien
> Grall' <julien@xen.org>; 'Stefano Stabellini' <sstabellini@kernel.org>; 'Roger Pau Monné'
> <roger.pau@citrix.com>
> Subject: Re: [EXTERNAL] [PATCH v7 8/9] x86/time: add a domain context record for tsc_info...
>
> On 28.08.2020 13:08, Paul Durrant wrote:
> >> -----Original Message-----
> >> From: Jan Beulich <jbeulich@suse.com>
> >> Sent: 26 August 2020 15:03
> >> To: Paul Durrant <paul@xen.org>
> >> Cc: xen-devel@lists.xenproject.org; Durrant, Paul <pdurrant@amazon.co.uk>; Ian Jackson
> >> <ian.jackson@eu.citrix.com>; Wei Liu <wl@xen.org>; Andrew Cooper <andrew.cooper3@citrix.com>;
> George
> >> Dunlap <george.dunlap@citrix.com>; Julien Grall <julien@xen.org>; Stefano Stabellini
> >> <sstabellini@kernel.org>; Roger Pau Monné <roger.pau@citrix.com>
> >> Subject: RE: [EXTERNAL] [PATCH v7 8/9] x86/time: add a domain context record for tsc_info...
> >>
> >> CAUTION: This email originated from outside of the organization. Do not click links or open
> >> attachments unless you can confirm the sender and know the content is safe.
> >>
> >>
> >>
> >> On 18.08.2020 12:30, Paul Durrant wrote:
> >>> --- a/xen/include/public/save.h
> >>> +++ b/xen/include/public/save.h
> >>> @@ -93,7 +93,18 @@ struct domain_shared_info_context {
> >>>
> >>> DECLARE_DOMAIN_SAVE_TYPE(SHARED_INFO, 2, struct domain_shared_info_context);
> >>>
> >>> -#define DOMAIN_SAVE_CODE_MAX 2
> >>> +#if defined(__i386__) || defined(__x86_64__)
> >>> +struct domain_tsc_info_context {
> >>> + uint32_t mode;
> >>> + uint32_t incarnation;
> >>> + uint64_t elapsed_nsec;
> >>> + uint32_t khz;
> >>> +};
> >>
> >> sizeof() for this struct varies between 32-bit and 64-bit - is
> >> this not a problem? (alignof() varies too, but there I think
> >> it's indeed not a problem, albeit it could still be taken care
> >> of by using uint64_aligned_t, alongside the addition of an
> >> explicit padding field).
> >
> > I don't think it should matter because domain context records have
> > implicit padding to align up to the next 64-bit boundary,
>
> Could you remind me where this is written down and enforced?
>
With the series fully applied, see xen/include/public/save.h line 62-68 for the comment and then see domain_save_end() in xen/common/save.c for where the padding is applied.
Paul
> > so as long as fields within the struct don't move (which I think
> > is true in this case) then we should be ok.
>
> Right.
>
> Jan
next prev parent reply other threads:[~2020-08-28 16:36 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-18 10:30 [PATCH v7 0/9] domain context infrastructure Paul Durrant
2020-08-18 10:30 ` [PATCH v7 1/9] xen/common: introduce a new framework for save/restore of 'domain' context Paul Durrant
2020-08-26 13:32 ` Jan Beulich
2020-08-26 13:53 ` Jan Beulich
2020-09-04 17:31 ` Paul Durrant
2020-08-18 10:30 ` [PATCH v7 2/9] xen/common/domctl: introduce XEN_DOMCTL_get/setdomaincontext Paul Durrant
2020-08-18 10:30 ` [PATCH v7 3/9] tools/misc: add xen-domctx to present domain context Paul Durrant
2020-08-18 10:30 ` [PATCH v7 4/9] docs/specs: add missing definitions to libxc-migration-stream Paul Durrant
2020-08-18 10:30 ` [PATCH v7 5/9] docs / tools: specific migration v4 to include DOMAIN_CONTEXT Paul Durrant
2020-08-18 10:30 ` [PATCH v7 6/9] tools/libxc: split restore handler handle_shared_info() functionality Paul Durrant
2020-08-18 10:30 ` [PATCH v7 7/9] common/domain: add a domain context record for shared_info Paul Durrant
2020-08-26 13:57 ` Jan Beulich
2020-09-04 17:29 ` Paul Durrant
2020-09-07 7:01 ` Jan Beulich
2020-09-07 7:11 ` [EXTERNAL] " Paul Durrant
2020-09-15 14:20 ` Durrant, Paul
2020-08-18 10:30 ` [PATCH v7 8/9] x86/time: add a domain context record for tsc_info Paul Durrant
2020-08-26 14:02 ` Jan Beulich
2020-08-28 11:08 ` [EXTERNAL] " Paul Durrant
2020-08-28 15:53 ` Jan Beulich
2020-08-28 16:36 ` Paul Durrant [this message]
2020-08-31 7:23 ` Jan Beulich
2020-08-18 10:30 ` [PATCH v7 9/9] tools/libxc: add DOMAIN_CONTEXT records to the migration stream Paul Durrant
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='001201d67d59$5249add0$f6dd0970$@xen.org' \
--to=xadimgnik@gmail.com \
--cc=andrew.cooper3@citrix.com \
--cc=george.dunlap@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=paul@xen.org \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.