From: Alexander G. <al...@cs...> - 2008-01-09 18:44:48
Attachments:
kvm-perf.patch
|
This patch adds support for the MSR MSR_IA32_PERF_STATUS. This is required to boot Darwin. I only implemented dummy support, as the real value would be of no meaning to any OS I know so far anyway and is only implemented on very recent Intel CPUs. |
From: Alexander G. <al...@cs...> - 2008-01-15 12:25:07
Attachments:
kvm-perf.patch
|
This is a resend of a mail I sent on 01/10/2008. I did not receive any response, so I assume it was lost. The patch is really minor, does not break any compatibility (the MSR is Intel family 13+) and makes Darwin work. --- old mail --- This patch adds support for the MSR MSR_IA32_PERF_STATUS. This is required to boot Darwin. I only implemented dummy support, as the real value would be of no meaning to any OS I know so far anyway and is only implemented on very recent Intel CPUs. |
From: Avi K. <av...@qu...> - 2008-01-15 15:28:22
|
Alexander Graf wrote: > This is a resend of a mail I sent on 01/10/2008. I did not receive any > response, so I assume it was lost. > > The patch is really minor, does not break any compatibility (the MSR is > Intel family 13+) and makes Darwin work. > > --- old mail --- > > This patch adds support for the MSR MSR_IA32_PERF_STATUS. This is > required to boot Darwin. > > I only implemented dummy support, as the real value would be of no > meaning to any OS I know so far anyway and is only implemented on very > recent Intel CPUs. > > Looks okay, but please add a signoff line and use the kernel coding style (tabs and comment style). -- error compiling committee.c: too many arguments to function |
From: Alexander G. <al...@cs...> - 2008-01-15 16:41:51
|
Avi Kivity wrote: > Alexander Graf wrote: > >> This is a resend of a mail I sent on 01/10/2008. I did not receive any >> response, so I assume it was lost. >> >> The patch is really minor, does not break any compatibility (the MSR is >> Intel family 13+) and makes Darwin work. >> >> --- old mail --- >> >> This patch adds support for the MSR MSR_IA32_PERF_STATUS. This is >> required to boot Darwin. >> >> I only implemented dummy support, as the real value would be of no >> meaning to any OS I know so far anyway and is only implemented on very >> recent Intel CPUs. >> >> >> > > Looks okay, but please add a signoff line and use the kernel coding > style (tabs and comment style). > > > > Ok, should I resend the patch with a signed-off line and proper coding style? |
From: Avi K. <av...@qu...> - 2008-01-15 17:45:41
|
Alexander Graf wrote: > Avi Kivity wrote: > >> Alexander Graf wrote: >> >> >>> This is a resend of a mail I sent on 01/10/2008. I did not receive any >>> response, so I assume it was lost. >>> >>> The patch is really minor, does not break any compatibility (the MSR is >>> Intel family 13+) and makes Darwin work. >>> >>> --- old mail --- >>> >>> This patch adds support for the MSR MSR_IA32_PERF_STATUS. This is >>> required to boot Darwin. >>> >>> I only implemented dummy support, as the real value would be of no >>> meaning to any OS I know so far anyway and is only implemented on very >>> recent Intel CPUs. >>> >>> >>> >>> >> Looks okay, but please add a signoff line and use the kernel coding >> style (tabs and comment style). >> >> >> >> >> > Ok, should I resend the patch with a signed-off line and proper coding > style? > Yes please. I'm a little worried that this can confuse other guests, but as it's read only and a large variety have run so far without complaining, it's probably safe enough. -- error compiling committee.c: too many arguments to function |
From: Avi K. <av...@qu...> - 2008-01-15 15:51:31
|
Alexander Graf wrote: > This is a resend of a mail I sent on 01/10/2008. I did not receive any > response, so I assume it was lost. > > The patch is really minor, does not break any compatibility (the MSR is > Intel family 13+) and makes Darwin work. > > --- old mail --- > > This patch adds support for the MSR MSR_IA32_PERF_STATUS. This is > required to boot Darwin. > > I only implemented dummy support, as the real value would be of no > meaning to any OS I know so far anyway and is only implemented on very > recent Intel CPUs. > I see some documentation of this in 13.1.1, but is there somewhere with more information? -- error compiling committee.c: too many arguments to function |
From: Alexander G. <al...@cs...> - 2008-01-15 16:33:34
|
Avi Kivity wrote: > Alexander Graf wrote: >> This is a resend of a mail I sent on 01/10/2008. I did not receive any >> response, so I assume it was lost. >> >> The patch is really minor, does not break any compatibility (the MSR is >> Intel family 13+) and makes Darwin work. >> >> --- old mail --- >> >> This patch adds support for the MSR MSR_IA32_PERF_STATUS. This is >> required to boot Darwin. >> >> I only implemented dummy support, as the real value would be of no >> meaning to any OS I know so far anyway and is only implemented on very >> recent Intel CPUs. >> > > I see some documentation of this in 13.1.1, but is there somewhere > with more information? > The only proper source of information I found was the XNU kernel, which implements a full interpretation of the MSR values. Basically the high bits are the CPU multiplier, while the low bits represent the number the TSC advances in one cycle. There is also a bit which multiplies everything by 2, but maybe the Intel people on this list can tell us more about it. |