WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [HVM][XENOPROFILE][PATCH] fix reversed test for mode functio

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [HVM][XENOPROFILE][PATCH] fix reversed test for mode function
From: "Woller, Thomas" <thomas.woller@xxxxxxx>
Date: Thu, 30 Nov 2006 15:16:37 -0600
Delivery-date: Thu, 30 Nov 2006 13:17:05 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AccUxNJKXbh+wUkjTq2sw7PZxoJSVQ==
Thread-topic: [HVM][XENOPROFILE][PATCH] fix reversed test for mode function
Keir,
This patch fixes incorrect logic in the recently added
xenoprofile_get_mode() function.
On HVM guests the !guest_mode(regs) test will always succeed, so move
the is_hvm_vcpu() test first.
This change allows modes other than 2 to be returned properly for
xenoprofile for HVM guests.

Signed-off-by: Tom Woller <thomas.woller@xxxxxxx>
Please apply to xen-unstable.hg.

--Tom

Attachment: hvm_xenoprofile_fix_mode.patch
Description: hvm_xenoprofile_fix_mode.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>