qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 04/13] hvf: run hvf code through checkpatch.p


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v2 04/13] hvf: run hvf code through checkpatch.pl and fix style issues
Date: Thu, 31 Aug 2017 09:01:31 +0100
User-agent: Mutt/1.8.3 (2017-05-23)

On Wed, Aug 30, 2017 at 03:26:53AM -0500, Sergio Andres Gomez Del Real wrote:
> @@ -900,6 +904,9 @@ void cpu_synchronize_all_states(void)
>  
>      CPU_FOREACH(cpu) {
>          cpu_synchronize_state(cpu);
> +        if (hvf_enabled()) {
> +            hvf_cpu_synchronize_state(cpu);
> +        }

The other accelerators put their code into cpu_synchronize_state():

  static inline void cpu_synchronize_state(CPUState *cpu)
  {
      if (kvm_enabled()) {
          kvm_cpu_synchronize_state(cpu);
      }
      if (hax_enabled()) {
          hax_cpu_synchronize_state(cpu);
      }
  }

Why put the hvf code outside cpu_synchronize_state()?

>      }
>  }
>  
> @@ -909,6 +916,9 @@ void cpu_synchronize_all_post_reset(void)
>  
>      CPU_FOREACH(cpu) {
>          cpu_synchronize_post_reset(cpu);
> +        if (hvf_enabled()) {
> +            hvf_cpu_synchronize_post_reset(cpu);
> +        }

Same here.

>      }
>  }
>  
> @@ -918,6 +928,9 @@ void cpu_synchronize_all_post_init(void)
>  
>      CPU_FOREACH(cpu) {
>          cpu_synchronize_post_init(cpu);
> +        if (hvf_enabled()) {
> +            hvf_cpu_synchronize_post_init(cpu);
> +        }

Same here.

These changes are not checkpatch.pl fixes.  It's okay to have a huge
patch that just fixes checkpatch.pl issues, but please don't include
other changes in the patch.  They should go in separate commits with
proper commit messages/descriptions.

I'll wait for the next revision before reviewing this patch further.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]