[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.
- Re: [Qemu-devel] [PATCH v2 05/13] hvf: add fields to CPUState and CPUX86State; add definitions, (continued)
- [Qemu-devel] [PATCH v2 10/13] hvf: implement vga dirty page tracking, Sergio Andres Gomez Del Real, 2017/08/30
- [Qemu-devel] [PATCH v2 09/13] hvf: refactor cpuid code, Sergio Andres Gomez Del Real, 2017/08/30
- [Qemu-devel] [PATCH v2 13/13] hvf: inject General Protection Fault when vmexit through vmcall, Sergio Andres Gomez Del Real, 2017/08/30
- [Qemu-devel] [PATCH v2 12/13] hvf: refactor event injection code for hvf, Sergio Andres Gomez Del Real, 2017/08/30
- [Qemu-devel] [PATCH v2 11/13] hvf: move fields from CPUState to CPUX86State, Sergio Andres Gomez Del Real, 2017/08/30
- [Qemu-devel] [PATCH v2 04/13] hvf: run hvf code through checkpatch.pl and fix style issues, Sergio Andres Gomez Del Real, 2017/08/30
- Re: [Qemu-devel] [PATCH v2 04/13] hvf: run hvf code through checkpatch.pl and fix style issues,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH v2 02/13] hvf: add code base from Google's QEMU repository, Sergio Andres Gomez Del Real, 2017/08/30
- Re: [Qemu-devel] [PATCH v2 02/13] hvf: add code base from Google's QEMU repository, Daniel P. Berrange, 2017/08/30
- Re: [Qemu-devel] [PATCH v2 02/13] hvf: add code base from Google's QEMU repository, Stefan Hajnoczi, 2017/08/31
- Re: [Qemu-devel] [PATCH v2 02/13] hvf: add code base from Google's QEMU repository, Paolo Bonzini, 2017/08/31
- Re: [Qemu-devel] [PATCH v2 02/13] hvf: add code base from Google's QEMU repository, Izik Eidus, 2017/08/31
- Re: [Qemu-devel] [PATCH v2 02/13] hvf: add code base from Google's QEMU repository, Paolo Bonzini, 2017/08/31
- Re: [Qemu-devel] [PATCH v2 02/13] hvf: add code base from Google's QEMU repository, Izik Eidus, 2017/08/31
- Re: [Qemu-devel] [PATCH v2 02/13] hvf: add code base from Google's QEMU repository, Sergio Andrés Gómez del Real, 2017/08/31
- Message not available
- Re: [Qemu-devel] [PATCH v2 02/13] hvf: add code base from Google's QEMU repository, Izik Eidus, 2017/08/31
Re: [Qemu-devel] [PATCH v2 02/13] hvf: add code base from Google's QEMU repository, Stefan Hajnoczi, 2017/08/31