[PATCH for-4.15] tools/misc/xen-vmtrace: use reset and enable

Tamas K Lengyel posted 1 patch 3 years, 2 months ago
Test gitlab-ci passed
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/d63d274c46f964d89f791d5e5166971387c0e2e8.1613855006.git.tamas@tklengyel.com
tools/misc/xen-vmtrace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH for-4.15] tools/misc/xen-vmtrace: use reset and enable
Posted by Tamas K Lengyel 3 years, 2 months ago
The expected behavior while using xen-vmtrace is to get a clean start, even if
the tool was used previously on the same VM.

Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
---
 tools/misc/xen-vmtrace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/misc/xen-vmtrace.c b/tools/misc/xen-vmtrace.c
index 7572e880c5..35d14c6a9b 100644
--- a/tools/misc/xen-vmtrace.c
+++ b/tools/misc/xen-vmtrace.c
@@ -119,7 +119,7 @@ int main(int argc, char **argv)
         goto out;
     }
 
-    if ( xc_vmtrace_enable(xch, domid, vcpu) )
+    if ( xc_vmtrace_reset_and_enable(xch, domid, vcpu) )
     {
         perror("xc_vmtrace_enable()");
         goto out;
-- 
2.27.0


Re: [PATCH for-4.15] tools/misc/xen-vmtrace: use reset and enable
Posted by Ian Jackson 3 years, 2 months ago
Tamas K Lengyel writes ("[PATCH for-4.15] tools/misc/xen-vmtrace: use reset and enable"):
> The expected behavior while using xen-vmtrace is to get a clean start, even if
> the tool was used previously on the same VM.

Release-Acked-by: Ian Jackson <iwj@xenproject.org>
Reviewed-by: Ian Jackson <iwj@xenproject.org>

and pushed to staging.

Ian.