[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] valgrind support for xen4.7+



On Wed, Apr 12, Glenn Enright wrote:

> Has anyone seen or been working on patches for valgrind for recent versions
> of xen?

Upstream requires paperwork, via kde.org bugzilla. This is my variant,
which is enough to run 'xl create' with valgrind.

Olaf

--- coregrind/m_syswrap/syswrap-xen.c.orig
+++ coregrind/m_syswrap/syswrap-xen.c
@@ -584,6 +584,8 @@ PRE(sysctl) {
    case 0x00000009:
    case 0x0000000a:
    case 0x0000000b:
+   case 0x0000000c:
+   case 0x0000000d:
           break;
    default:
       bad_intf_version(tid, layout, arrghs, status, flags,
@@ -626,6 +628,8 @@ PRE(sysctl) {
         break;
       case 0x0000000a:
       case 0x0000000b:
+      case 0x0000000c:
+      case 0x0000000d:
         PRE_XEN_SYSCTL_READ(getdomaininfolist_0000000a, first_domain);
         PRE_XEN_SYSCTL_READ(getdomaininfolist_0000000a, max_domains);
         PRE_XEN_SYSCTL_READ(getdomaininfolist_0000000a, buffer);
@@ -728,6 +732,9 @@ PRE(domctl)
    case 0x00000008:
    case 0x00000009:
    case 0x0000000a:
+   case 0x0000000b:
+   case 0x0000000c:
+   case 0x0000000d:
           break;
    default:
       bad_intf_version(tid, layout, arrghs, status, flags,
@@ -1534,6 +1541,8 @@ POST(sysctl)
    case 0x00000009:
    case 0x0000000a:
    case 0x0000000b:
+   case 0x0000000c:
+   case 0x0000000d:
           break;
    default:
       return;
@@ -1568,6 +1577,8 @@ POST(sysctl)
         break;
       case 0x0000000a:
       case 0x0000000b:
+      case 0x0000000c:
+      case 0x0000000d:
         POST_XEN_SYSCTL_WRITE(getdomaininfolist_0000000a, num_domains);
         POST_MEM_WRITE((Addr)sysctl->u.getdomaininfolist_0000000a.buffer.p,
                        sizeof(*sysctl->u.getdomaininfolist_0000000a.buffer.p)

Olaf

Attachment: signature.asc
Description: PGP signature

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.