xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Xen-devel <xen-devel@lists.xen.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	Ian Campbell <Ian.Campbell@citrix.com>
Subject: [PATCH 2/6] syswrap: XEN_DOMCTL_settimeoffset
Date: Mon, 3 Mar 2014 14:53:20 +0000	[thread overview]
Message-ID: <1393858404-15220-3-git-send-email-andrew.cooper3@citrix.com> (raw)
In-Reply-To: <1393858404-15220-1-git-send-email-andrew.cooper3@citrix.com>

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
---
 coregrind/m_syswrap/syswrap-xen.c |    4 ++++
 include/vki/vki-xen-domctl.h      |    6 +++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/coregrind/m_syswrap/syswrap-xen.c b/coregrind/m_syswrap/syswrap-xen.c
index 9b2c71d..1940665 100644
--- a/coregrind/m_syswrap/syswrap-xen.c
+++ b/coregrind/m_syswrap/syswrap-xen.c
@@ -637,6 +637,10 @@ PRE(domctl)
       PRE_XEN_DOMCTL_READ(hypercall_init, gmfn);
       break;
 
+   case VKI_XEN_DOMCTL_settimeoffset:
+       PRE_XEN_DOMCTL_READ(settimeoffset, time_offset_seconds);
+       break;
+
    case VKI_XEN_DOMCTL_getvcpuinfo:
       PRE_XEN_DOMCTL_READ(getvcpuinfo, vcpu);
       break;
diff --git a/include/vki/vki-xen-domctl.h b/include/vki/vki-xen-domctl.h
index 2d07f41..df97bb3 100644
--- a/include/vki/vki-xen-domctl.h
+++ b/include/vki/vki-xen-domctl.h
@@ -264,6 +264,10 @@ struct vki_xen_domctl_hypercall_init {
     vki_xen_uint64_aligned_t  gmfn;           /* GMFN to be initialised */
 };
 
+struct vki_xen_domctl_settimeoffset {
+    vki_int32_t time_offset_seconds;
+};
+
 struct vki_xen_domctl_cpuid {
   vki_uint32_t input[2];
   vki_uint32_t eax;
@@ -337,7 +341,7 @@ struct vki_xen_domctl {
         //struct vki_xen_domctl_ioport_permission ioport_permission;
         struct vki_xen_domctl_hypercall_init    hypercall_init;
         //struct vki_xen_domctl_arch_setup        arch_setup;
-        //struct vki_xen_domctl_settimeoffset     settimeoffset;
+        struct vki_xen_domctl_settimeoffset     settimeoffset;
         //struct vki_xen_domctl_disable_migrate   disable_migrate;
         struct vki_xen_domctl_tsc_info          tsc_info;
         //struct vki_xen_domctl_real_mode_area    real_mode_area;
-- 
1.7.10.4

  parent reply	other threads:[~2014-03-03 14:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-03 14:53 [PATCH 0/6] Valgrind: More hypercalls Andrew Cooper
2014-03-03 14:53 ` [PATCH 1/6] Fix P{RE,OST}_XEN_HVMOP_{READ,WRITE} Andrew Cooper
2014-03-03 14:53 ` Andrew Cooper [this message]
2014-03-03 14:53 ` [PATCH 3/6] syswrap: XEN_DOMCTL_cacheflush Andrew Cooper
2014-03-03 14:53 ` [PATCH 4/6] syswrap: XEN_HVMOP_set_isa_irq_level Andrew Cooper
2014-03-03 14:53 ` [PATCH 5/6] syswrap: XEN_HVMOP_set_pci_link_route Andrew Cooper
2014-03-03 14:53 ` [PATCH 6/6] syswrap: XEN_HVMOP_set_mem_type Andrew Cooper
2014-03-14 17:35 ` [PATCH 0/6] Valgrind: More hypercalls Ian Campbell
2014-03-17 15:51   ` [PATCH 7/7] syswrap: XEN_DOMCTL_resumedomain Andrew Cooper
2014-03-18 10:53 ` [PATCH 0/6] Valgrind: More hypercalls Ian Campbell
2014-05-01  8:31   ` Ian Campbell

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=1393858404-15220-3-git-send-email-andrew.cooper3@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=Ian.Campbell@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).