From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>, Corneliu ZUZU <czuzu@bitdefender.com>
Cc: Kevin Tian <kevin.tian@intel.com>,
Tamas K Lengyel <tamas@tklengyel.com>, Keir Fraser <keir@xen.org>,
Razvan Cojocaru <rcojocaru@bitdefender.com>,
xen-devel@lists.xen.org, Jun Nakajima <jun.nakajima@intel.com>
Subject: Re: [PATCH v2 2/7] xen/x86: merge 2 hvm_event_... functions into 1
Date: Wed, 10 Feb 2016 20:56:18 +0000 [thread overview]
Message-ID: <56BBA3F2.4020906@citrix.com> (raw)
In-Reply-To: <56BB7D4302000078000D0C22@prv-mh.provo.novell.com>
On 10/02/2016 17:11, Jan Beulich wrote:
>>>> On 10.02.16 at 18:04, <czuzu@bitdefender.com> wrote:
>> On 2/10/2016 6:18 PM, Jan Beulich wrote:
>>>>>> On 10.02.16 at 16:50, <czuzu@bitdefender.com> wrote:
>>>> --- a/xen/include/asm-x86/hvm/event.h
>>>> +++ b/xen/include/asm-x86/hvm/event.h
>>>> @@ -17,6 +17,12 @@
>>>> #ifndef __ASM_X86_HVM_EVENT_H__
>>>> #define __ASM_X86_HVM_EVENT_H__
>>>>
>>>> +enum hvm_event_breakpoint_type
>>>> +{
>>>> + HVM_EVENT_SOFTWARE_BREAKPOINT,
>>>> + HVM_EVENT_SINGLESTEP_BREAKPOINT,
>>>> +};
>>> I don't see what good it does to put existing constants into an
>>> enum.
>> As Andrew pointed out, an enum was requested in v1 instead of the
>> single_step param.
>> One could use the already existing VM_EVENT_REASON_* constants, but
>> conceptually this
>> function only involves a subset of those (i.e. *breakpoint vm-events*).
> Re-using existing constants would seem fine to me.
>
> I only now realize that I've made a mistake while looking at the
> above - the capitals made it implicitly "obvious" to me that they're
> on the right side of an assignment. Please use capitals only for
> #define-d constants, not enumerated ones.
Substantially more enums in the Xen codebase use caps than lowercase.
Given no specific direction in CODING_STYLE, this is an unreasonable
request.
~Andrew
next prev parent reply other threads:[~2016-02-10 20:56 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-10 15:47 [PATCH v2 0/7] Vm-events: move monitor vm-events code to common-side Corneliu ZUZU
2016-02-10 15:47 ` [PATCH v2 1/7] xen/arm: fix file comments Corneliu ZUZU
2016-02-10 16:05 ` Stefano Stabellini
2016-02-10 15:50 ` [PATCH v2 2/7] xen/x86: merge 2 hvm_event_... functions into 1 Corneliu ZUZU
2016-02-10 16:18 ` Jan Beulich
2016-02-10 16:37 ` Andrew Cooper
2016-02-10 17:05 ` Jan Beulich
2016-02-10 17:04 ` Corneliu ZUZU
2016-02-10 17:11 ` Jan Beulich
2016-02-10 20:50 ` Corneliu ZUZU
2016-02-10 20:56 ` Andrew Cooper [this message]
2016-02-11 10:31 ` Jan Beulich
2016-02-11 6:03 ` Corneliu ZUZU
2016-02-10 17:28 ` Razvan Cojocaru
2016-02-10 17:52 ` Tamas K Lengyel
2016-02-10 15:52 ` [PATCH v2 3/7] xen/vm-events: Move monitor_domctl to common-side Corneliu ZUZU
2016-02-10 16:26 ` Jan Beulich
2016-02-10 16:30 ` Jan Beulich
2016-02-10 17:14 ` Corneliu ZUZU
2016-02-10 17:12 ` Corneliu ZUZU
2016-02-10 16:39 ` Tamas K Lengyel
2016-02-10 17:34 ` Corneliu ZUZU
2016-02-10 17:56 ` Tamas K Lengyel
2016-02-11 7:21 ` Corneliu ZUZU
2016-02-11 15:44 ` Tamas K Lengyel
2016-02-12 6:05 ` Corneliu ZUZU
2016-02-12 8:14 ` Corneliu ZUZU
2016-02-11 6:20 ` Corneliu ZUZU
2016-02-10 15:54 ` [PATCH v2 4/7] Rename monitor_x86.c to monitor.c and monitor_arch.h to monitor.h Corneliu ZUZU
2016-02-10 16:44 ` Tamas K Lengyel
2016-02-10 17:16 ` Jan Beulich
2016-02-10 20:54 ` Corneliu ZUZU
2016-02-10 20:36 ` Corneliu ZUZU
2016-02-10 15:56 ` [PATCH v2 5/7] xen/vm-events: Move hvm_event_* functions to common-side Corneliu ZUZU
2016-02-10 15:58 ` [PATCH v2 6/7] Rename event_x86.c to event.c and event_arch.h to event.h + minor fixes Corneliu ZUZU
2016-02-10 16:00 ` [PATCH v2 7/7] xen/vm-events: move arch_domain.monitor bits to common Corneliu ZUZU
2016-02-10 16:29 ` Jan Beulich
2016-02-10 17:14 ` Corneliu ZUZU
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56BBA3F2.4020906@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=czuzu@bitdefender.com \
--cc=jun.nakajima@intel.com \
--cc=keir@xen.org \
--cc=kevin.tian@intel.com \
--cc=rcojocaru@bitdefender.com \
--cc=tamas@tklengyel.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.