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 6/6] syswrap: XEN_HVMOP_set_mem_type
Date: Mon, 3 Mar 2014 14:53:24 +0000	[thread overview]
Message-ID: <1393858404-15220-7-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 |    8 ++++++++
 include/vki/vki-xen-hvm.h         |    9 +++++++++
 2 files changed, 17 insertions(+)

diff --git a/coregrind/m_syswrap/syswrap-xen.c b/coregrind/m_syswrap/syswrap-xen.c
index 07329ba..be8fe86 100644
--- a/coregrind/m_syswrap/syswrap-xen.c
+++ b/coregrind/m_syswrap/syswrap-xen.c
@@ -819,6 +819,13 @@ PRE(hvm_op)
        PRE_XEN_HVMOP_READ(set_pci_link_route, isa_irq);
        break;
 
+   case VKI_XEN_HVMOP_set_mem_type:
+       PRE_XEN_HVMOP_READ(set_mem_type, domid);
+       PRE_XEN_HVMOP_READ(set_mem_type, hvmmem_type);
+       PRE_XEN_HVMOP_READ(set_mem_type, nr);
+       PRE_XEN_HVMOP_READ(set_mem_type, first_pfn);
+       break;
+
    default:
       bad_subop(tid, layout, arrghs, status, flags,
                 "__HYPERVISOR_hvm_op", op);
@@ -1352,6 +1359,7 @@ POST(hvm_op)
    case VKI_XEN_HVMOP_set_param:
    case VKI_XEN_HVMOP_set_isa_irq_level:
    case VKI_XEN_HVMOP_set_pci_link_route:
+   case VKI_XEN_HVMOP_set_mem_type:
       /* No output paramters */
       break;
 
diff --git a/include/vki/vki-xen-hvm.h b/include/vki/vki-xen-hvm.h
index 8659eb8..19ccbeb 100644
--- a/include/vki/vki-xen-hvm.h
+++ b/include/vki/vki-xen-hvm.h
@@ -26,6 +26,15 @@ struct vki_xen_hvm_set_pci_link_route {
 };
 typedef struct vki_xen_hvm_set_pci_link_route vki_xen_hvm_set_pci_link_route_t;
 
+#define VKI_XEN_HVMOP_set_mem_type 8
+struct vki_xen_hvm_set_mem_type {
+    vki_xen_domid_t  domid;
+    vki_uint16_t hvmmem_type;
+    vki_uint32_t nr;
+    vki_xen_uint64_aligned_t first_pfn;
+};
+typedef struct vki_xen_hvm_set_mem_type vki_xen_hvm_set_mem_type_t;
+
 #endif // __VKI_XEN_HVM_H
 
 /*--------------------------------------------------------------------*/
-- 
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 ` [PATCH 2/6] syswrap: XEN_DOMCTL_settimeoffset Andrew Cooper
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 ` Andrew Cooper [this message]
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-7-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).