Re: [PATCH RFC v2 6/6] KVM: introduce a new API for getting dirty bitmaps

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alexander Graf
Date: Friday, April 23, 2010 - 3:20 am

On 23.04.2010, at 12:17, Fernando Luis Vázquez Cao wrote:


Well yes, that was the problem. If we always set the __u64 value to the pointer we're safe though.

union {
  void *p;
  __u64 q;
}

void x(void *r)
{
  // breaks:
  p = r;

  // works:
  q = (ulong)r;
}

Alex

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC v2 0/6] KVM: moving dirty gitmaps to user space!, Takuya Yoshikawa, (Tue Apr 20, 3:53 am)
[PATCH RFC v2 5/6] KVM: moving dirty bitmaps to user space, Takuya Yoshikawa, (Tue Apr 20, 4:02 am)
Re: [PATCH RFC v2 6/6] KVM: introduce a new API for gettin ..., Fernando Luis Vázque ..., (Wed Apr 21, 1:29 am)
Re: [PATCH RFC v2 6/6] KVM: introduce a new API for gettin ..., Fernando Luis Vázque ..., (Wed Apr 21, 7:45 pm)
Re: [PATCH RFC v2 6/6] KVM: introduce a new API for gettin ..., Fernando Luis Vázque ..., (Wed Apr 21, 11:09 pm)
Re: [PATCH RFC v2 6/6] KVM: introduce a new API for gettin ..., Fernando Luis Vázque ..., (Fri Apr 23, 3:17 am)
Re: [PATCH RFC v2 6/6] KVM: introduce a new API for gettin ..., Alexander Graf, (Fri Apr 23, 3:20 am)