All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <jbeulich@suse.com>
To: tamas@tklengyel.com
Cc: wei.liu2@citrix.com, rcojocaru@bitdefender.com,
	stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com,
	ian.jackson@eu.citrix.com, julien.grall@arm.com,
	xen-devel@lists.xenproject.org, keir@xen.org,
	tklengyel@sec.in.tum.de
Subject: Re: [PATCH] vm_event: Implement ARM SMC events
Date: Mon, 11 Apr 2016 22:31:06 -0600	[thread overview]
Message-ID: <570C881A02000078000E6497@prv-mh.provo.novell.com> (raw)
In-Reply-To: <1460404042-31179-1-git-send-email-tamas@tklengyel.com>

>>> Tamas K Lengyel <tamas@tklengyel.com> 04/11/16 9:47 PM >>>
>--- a/xen/include/public/vm_event.h
>+++ b/xen/include/public/vm_event.h
>@@ -166,6 +166,31 @@ struct vm_event_regs_x86 {
     >uint32_t _pad;
 >};
 >
>+struct vm_event_regs_arm {
>+    uint32_t r0;
>+    uint32_t r1;
>+    uint32_t r2;
>+    uint32_t r3;
>+    uint32_t r4;
>+    uint32_t r5;
>+    uint32_t r6;
>+    uint32_t r7;
>+    uint32_t r8;
>+    uint32_t r9;
>+    uint32_t r10;
>+    uint32_t r11;
>+    uint32_t r12;
>+
>+    uint32_t sp; /* r13 - SP: Valid for Hyp. frames only, o/w banked (see below) */
>+    uint32_t lr; /* r14 - LR: Valid for Hyp. Same physical register as lr_usr. */
>+
>+    uint32_t cpsr; /* Return mode */
>+    uint64_t pc;

Why uint64_t instead of uint32_t?

>+    uint64_t ttbr0;
>+    uint64_t ttbr1;
>+    uint32_t _pad;
>+};

This padding field is pretty strange: Without the adjustment to pc there are 16
32-bit fields (not counting the padding one), so I don't see why padding would be
needed at all. And with pc adjusted the padding field would surely better go
ahead of the two remaining 64-bit ones.

>@@ -254,6 +279,7 @@ typedef struct vm_event_st {
     >union {
         >union {
             >struct vm_event_regs_x86 x86;
>+            struct vm_event_regs_arm arm;
         >} regs;
 
         Does this alter the x86 ABI? Perhaps the ARM structure is small enough for
this to not happen now, but what's the general idea about not breaking other
arch'es ABIs when adding support for a new arch here?

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2016-04-12  4:31 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-11 19:47 [PATCH] vm_event: Implement ARM SMC events Tamas K Lengyel
2016-04-12  4:31 ` Jan Beulich [this message]
2016-04-12  5:35   ` Razvan Cojocaru
2016-04-12 15:08     ` Tamas K Lengyel
2016-04-12 15:05   ` Tamas K Lengyel
2016-04-12 15:58     ` Julien Grall
2016-04-12 17:58       ` Tamas K Lengyel
2016-04-12  7:51 ` Corneliu ZUZU
2016-04-12 15:01   ` Tamas K Lengyel
2016-04-12 16:24     ` Julien Grall
2016-04-12 17:05       ` Corneliu ZUZU
2016-04-12 17:24         ` Tamas K Lengyel
2016-04-13  8:55           ` Corneliu ZUZU
2016-04-13 10:17             ` Andrew Cooper
2016-04-13 10:53               ` Corneliu ZUZU
2016-04-13 12:02                 ` Andrew Cooper
2016-04-13 13:25                   ` Tamas K Lengyel
2016-04-13 15:06                     ` Lars Kurth
2016-04-13 15:13                       ` Tamas K Lengyel
2016-04-13 10:52             ` Julien Grall
2016-04-13 11:02               ` Corneliu ZUZU
2016-04-13 15:32             ` Tamas K Lengyel
2016-04-12 14:55 ` Konrad Rzeszutek Wilk
2016-04-12 15:22   ` Tamas K Lengyel

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=570C881A02000078000E6497@prv-mh.provo.novell.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=julien.grall@arm.com \
    --cc=keir@xen.org \
    --cc=rcojocaru@bitdefender.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tamas@tklengyel.com \
    --cc=tklengyel@sec.in.tum.de \
    --cc=wei.liu2@citrix.com \
    --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.