* FW: [PATCH] [RFC][PATCH] kvm: kvmtrace: kvm_trace in kernel for supporting big_endian
@ 2008-05-21 7:50 Tan, Li
2008-05-21 16:21 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Tan, Li @ 2008-05-21 7:50 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm
-----Original Message-----
From: Avi Kivity [mailto:avi@qumranet.com]
Sent: 2008年5月21日 0:26
To: Tan, Li
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] [RFC][PATCH] kvm: kvmtrace: kvm_trace in kernel for supporting big_endian
Tan, Li wrote:
> From 63283d32ad5faf0845fa0358fd71d119f4dc0e3d Mon Sep 17 00:00:00 2001
> From: Tan Li <li.tan@intel.com>
> Date: Mon, 19 May 2008 17:18:54 +0800
> Subject: [PATCH] [RFC][PATCH] kvm: kvmtrace: kvm_trace in kernel for
> supporting big_endian
>
> Currently kvmtrace is not portable. This will prevent from copying a
> trace file from big-endian target to little-endian workstation for
> analysis.
>
> In the patch, kernel outputs metadata containing a magic number to trace
> log.
>
> diff --git a/include/linux/kvm.h b/include/linux/kvm.h
> index a281afe..ca08cb1 100644
> --- a/include/linux/kvm.h
> +++ b/include/linux/kvm.h
> @@ -294,14 +294,14 @@ struct kvm_trace_rec {
> __u32 vcpu_id;
> union {
> struct {
> - __u32 cycle_lo, cycle_hi;
> + __u64 cycle_u64;
> __u32 extra_u32[KVM_TRC_EXTRA_MAX];
> } cycle;
>
For this bit, you'll need to change 'II' to 'L' in the format, no?
--
error compiling committee.c: too many arguments to function
[tan] it should be "Q", not "L", according to
http://docs.python.org/lib/module-struct.html
in kvmtrace_format, it's already like:
TSCREC = "Q"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: FW: [PATCH] [RFC][PATCH] kvm: kvmtrace: kvm_trace in kernel for supporting big_endian
2008-05-21 7:50 FW: [PATCH] [RFC][PATCH] kvm: kvmtrace: kvm_trace in kernel for supporting big_endian Tan, Li
@ 2008-05-21 16:21 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-05-21 16:21 UTC (permalink / raw)
To: Tan, Li; +Cc: kvm
Tan, Li wrote:
>> @@ -294,14 +294,14 @@ struct kvm_trace_rec {
>> __u32 vcpu_id;
>> union {
>> struct {
>> - __u32 cycle_lo, cycle_hi;
>> + __u64 cycle_u64;
>> __u32 extra_u32[KVM_TRC_EXTRA_MAX];
>> } cycle;
>>
>>
>
> For this bit, you'll need to change 'II' to 'L' in the format, no?
>
>
> [tan] it should be "Q", not "L", according to
> http://docs.python.org/lib/module-struct.html
>
> in kvmtrace_format, it's already like:
> TSCREC = "Q"
Oh, I didn't notice. Sorry.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-21 16:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-21 7:50 FW: [PATCH] [RFC][PATCH] kvm: kvmtrace: kvm_trace in kernel for supporting big_endian Tan, Li
2008-05-21 16:21 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox