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@amd.com>
Please apply to xen-unstable.hg.
--Tom
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@amd.com>
Please apply to xen-unstable.hg.
--Tom