xenoprof: drop necessary macro
PATCH v2 1/1 xenoprof: drop necessary macro
This macro doesn't really provide a benefit. When support is added the implementer can implement this how it needs to be and not conform to the macro. Additionally this change limits the output of the warning to just once instead of nrpages worth. While editing this area I dropped trailing whitespace.
---
CC: Keir Fraser <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Andrew Cooper <[email protected]>
changes since v1:
- add commit message about whitespace change
- only print warning once
- shorten warning to be fully greppable
--- xen/common/xenoprof.c | 7 +++++-- xen/include/asm-x86/xenoprof.h | 8 -------- 2 files changed, 5 insertions(+), 10 deletions(-)
xen/common/xenoprof.c +5 -2
@@ -177,11 +177,14 @@ xenoprof_shared_gmfn_with_guest( struct domain *d, unsigned long maddr, unsigned long gmaddr, int npages) { int i; - +for ( i =0 ; i < npages; i++, maddr +=PAGE_SIZE , gmaddr +=PAGE_SIZE ) {BUG_ON (page_get_owner (maddr_to_page (maddr)) != d); -xenoprof_shared_gmfn (d, gmaddr, maddr); +if ( i ==0 ) +gdprintk (XENLOG_WARNING , +"xenoprof unsupported with autotranslated guests\n" ); + } }
xen/include/asm-x86/xenoprof.h +0 -8
@@ -62,14 +62,6 @@ static inline int xenoprof_backtrace_supported(void)void xenoprof_backtrace (struct vcpu *,const struct cpu_user_regs *,unsigned long depth,int mode); -#define xenoprof_shared_gmfn (d, gmaddr, maddr) \ - do { \ - (void)(maddr); \ - gdprintk(XENLOG_WARNING, \ - "xenoprof/x86 with autotranslated mode enabled" \ - "isn't supported yet\n"); \ - } while (0) -int passive_domain_do_rdmsr (unsigned int msr,uint64_t *msr_content);int passive_domain_do_wrmsr (unsigned int msr,uint64_t msr_content);void passive_domain_destroy (struct vcpu *v);
Signature · 1 line
2.4.10
Quoted 7 lines · Doug Goldstein
This macro doesn't really provide a benefit. When support is added the implementer can implement this how it needs to be and not conform to the macro. Additionally this change limits the output of the warning to just once instead of nrpages worth. While editing this area I dropped trailing whitespace.
Signed-off-by Doug Goldstein <[email protected]>
Quoted 9 lines · Andrew Cooper
Quoted 7 lines · Doug Goldstein
This macro doesn't really provide a benefit. When support is added the implementer can implement this how it needs to be and not conform to the macro. Additionally this change limits the output of the warning to just once instead of nrpages worth. While editing this area I dropped trailing whitespace.
Signed-off-by Doug Goldstein <[email protected]>Reviewed-by Andrew Cooper <[email protected]>
You still need to correct the title, (although that could be done on commit).
~Andrew
Quoted 8 lines · Andrew Cooper
Quoted 7 lines · Andrew Cooper
Quoted 6 lines · Doug Goldstein
This macro doesn't really provide a benefit. When support is added the implementer can implement this how it needs to be and not conform to the macro. Additionally this change limits the output of the warning to just once instead of nrpages worth. While editing this area I dropped trailing whitespace.
Quoted 8 lines
Quoted 2 lines
Quoted 1 line
Signed-off-by Doug Goldstein <[email protected]>Reviewed-by Andrew Cooper <[email protected]>You still need to correct the title, (although that could be done on commit).
~Andrew
I fail. Committers: Want me to resubmit or can you set it with "unnecessary"?
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 23.02.16 at 16:38, <[email protected]> wrote:
Quoted 8 lines · Andrew Cooper
Quoted 7 lines · Andrew Cooper
Quoted 6 lines · Doug Goldstein
This macro doesn't really provide a benefit. When support is added the implementer can implement this how it needs to be and not conform to the macro. Additionally this change limits the output of the warning to just once instead of nrpages worth. While editing this area I dropped trailing whitespace.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Quoted 1 line
Signed-off-by Doug Goldstein <[email protected]>Reviewed-by Andrew Cooper <[email protected]>You still need to correct the title, (although that could be done on commit).
I fail. Committers: Want me to resubmit or can you set it with "unnecessary"?
I'll try to remember once committing.
Jan