public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
* [PATCH] Cygwin: cpuinfo: Linux 6.5: add AMD 0x8000001f EAX 14 debug_swap SEV-ES full debug state swap
@ 2023-08-31  4:10 Brian Inglis
  2023-08-31  9:08 ` Corinna Vinschen
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Inglis @ 2023-08-31  4:10 UTC (permalink / raw)
  To: cygwin-patches

Signed-off-by: Brian Inglis <Brian.Inglis@Shaw.ca>
---
 winsup/cygwin/fhandler/proc.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/fhandler/proc.cc b/winsup/cygwin/fhandler/proc.cc
index cbc49a12a417..be107cb8eacc 100644
--- a/winsup/cygwin/fhandler/proc.cc
+++ b/winsup/cygwin/fhandler/proc.cc
@@ -1652,7 +1652,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
 /*	  ftcprint (features2, 11, "sev_64b");*//* SEV 64 bit host guest only */
 /*	  ftcprint (features2, 12, "sev_rest_inj");   *//* SEV restricted injection */
 /*	  ftcprint (features2, 13, "sev_alt_inj");    *//* SEV alternate injection */
-/*	  ftcprint (features2, 14, "sev_es_dbg_swap");*//* SEV-ES debug state swap */
+	  ftcprint (features2, 14, "debug_swap");   /* SEV-ES full debug state swap */
 /*	  ftcprint (features2, 15, "no_host_ibs");    *//* host IBS unsupported */
 /*	  ftcprint (features2, 16, "vte");    *//* virtual transparent encryption */
 	}
-- 
2.39.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Cygwin: cpuinfo: Linux 6.5: add AMD 0x8000001f EAX 14 debug_swap SEV-ES full debug state swap
  2023-08-31  4:10 [PATCH] Cygwin: cpuinfo: Linux 6.5: add AMD 0x8000001f EAX 14 debug_swap SEV-ES full debug state swap Brian Inglis
@ 2023-08-31  9:08 ` Corinna Vinschen
  2023-08-31 20:12   ` Brian Inglis
  0 siblings, 1 reply; 3+ messages in thread
From: Corinna Vinschen @ 2023-08-31  9:08 UTC (permalink / raw)
  To: cygwin-patches

Hi Brian,

nothing against the patch as such, but your subject line is not so nice.
As it becomes the commit message first line, it should be shorter.  Add
more descriptive text instead, please, and make sure that it tells the
reader what you're really doing, i. e.:

You write "add <something>", but your patch is actually exchanging one
<somthing> with another <something>.

The reader of the commit message would probably like to know why you're
doing that. Partially copying the original Linux kernel commit message
should be ok.

Also, given that changes a string, does it qualify for a "Fixes:" tag?


Thanks,
Corinna


On Aug 30 22:10, Brian Inglis wrote:
> Signed-off-by: Brian Inglis <Brian.Inglis@Shaw.ca>
> ---
>  winsup/cygwin/fhandler/proc.cc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/winsup/cygwin/fhandler/proc.cc b/winsup/cygwin/fhandler/proc.cc
> index cbc49a12a417..be107cb8eacc 100644
> --- a/winsup/cygwin/fhandler/proc.cc
> +++ b/winsup/cygwin/fhandler/proc.cc
> @@ -1652,7 +1652,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
>  /*	  ftcprint (features2, 11, "sev_64b");*//* SEV 64 bit host guest only */
>  /*	  ftcprint (features2, 12, "sev_rest_inj");   *//* SEV restricted injection */
>  /*	  ftcprint (features2, 13, "sev_alt_inj");    *//* SEV alternate injection */
> -/*	  ftcprint (features2, 14, "sev_es_dbg_swap");*//* SEV-ES debug state swap */
> +	  ftcprint (features2, 14, "debug_swap");   /* SEV-ES full debug state swap */
>  /*	  ftcprint (features2, 15, "no_host_ibs");    *//* host IBS unsupported */
>  /*	  ftcprint (features2, 16, "vte");    *//* virtual transparent encryption */
>  	}
> -- 
> 2.39.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Cygwin: cpuinfo: Linux 6.5: add AMD 0x8000001f EAX 14 debug_swap SEV-ES full debug state swap
  2023-08-31  9:08 ` Corinna Vinschen
@ 2023-08-31 20:12   ` Brian Inglis
  0 siblings, 0 replies; 3+ messages in thread
From: Brian Inglis @ 2023-08-31 20:12 UTC (permalink / raw)
  To: cygwin-patches

On 2023-08-31 03:08, Corinna Vinschen wrote:
> nothing against the patch as such, but your subject line is not so nice.
> As it becomes the commit message first line, it should be shorter. Add
> more descriptive text instead, please, and make sure that it tells the
> reader what you're really doing, i. e.:

Sorry - really jammed it up - only a single mod this release - normally would 
split into release and details - will redo and resubmit.

> You write "add <something>", but your patch is actually exchanging one
> <somthing> with another <something>.

Existing comments are for AMD SEV features originally defined, to be implemented 
and exposed in /proc/cpuinfo "soon" for use in KVM, Xen, and similar projects. 
But not as quickly as previously expected, with timing, speculative and 
transient execution, and side channel attacks, leaks, ucode and mitigation 
patches, not letting up - and now cpu bugs vector is an array! ;^>

> The reader of the commit message would probably like to know why you're
> doing that. Partially copying the original Linux kernel commit message
> should be ok.

Those are often more function specific and in patches to earlier releases e.g.

	KVM: SEV: Enable data breakpoints in SEV-ES
	...
	Make X86_FEATURE_DEBUG_SWAP appear in /proc/cpuinfo...

which then go through subsystem then kernel repo merges to finally hit

	arch/x86/include/asm/cpufeatures.h

and other feature code, where my weekly selective cpuid-related kernel 
downloads, run cpu features cpuinfo display names array gen Linux script, and 
diff features defined and displayed.

Also Intel now hides new features in MSRs, so these become Linux software 
defined features, which we can not display if visible in /proc/cpuinfo, as we 
seem to have no view of MSRs from Windows user space (no MSR driver).

> Also, given that changes a string, does it qualify for a "Fixes:" tag?

Sometimes another vendor or arch announces a similar feature, not always using 
the same terminology, cpuids, or bits, so common Linux terminology replaces 
vendor or arch feature names, for display, as in this case.

> On Aug 30 22:10, Brian Inglis wrote:
>> Signed-off-by: Brian Inglis 
>> ---
>>   winsup/cygwin/fhandler/proc.cc | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/winsup/cygwin/fhandler/proc.cc b/winsup/cygwin/fhandler/proc.cc
>> index cbc49a12a417..be107cb8eacc 100644
>> --- a/winsup/cygwin/fhandler/proc.cc
>> +++ b/winsup/cygwin/fhandler/proc.cc
>> @@ -1652,7 +1652,7 @@ format_proc_cpuinfo (void *, char *&destbuf)
>>   /*	  ftcprint (features2, 11, "sev_64b");*//* SEV 64 bit host guest only */
>>   /*	  ftcprint (features2, 12, "sev_rest_inj");   *//* SEV restricted injection */
>>   /*	  ftcprint (features2, 13, "sev_alt_inj");    *//* SEV alternate injection */
>> -/*	  ftcprint (features2, 14, "sev_es_dbg_swap");*//* SEV-ES debug state swap */
>> +	  ftcprint (features2, 14, "debug_swap");   /* SEV-ES full debug state swap */
>>   /*	  ftcprint (features2, 15, "no_host_ibs");    *//* host IBS unsupported */
>>   /*	  ftcprint (features2, 16, "vte");    *//* virtual transparent encryption */
>>   	}
>> -- 
>> 2.39.0

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-31 20:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-31  4:10 [PATCH] Cygwin: cpuinfo: Linux 6.5: add AMD 0x8000001f EAX 14 debug_swap SEV-ES full debug state swap Brian Inglis
2023-08-31  9:08 ` Corinna Vinschen
2023-08-31 20:12   ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).