qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH] efault - add data type to put_user()/get_user()


From: Thayne Harbaugh
Subject: [Qemu-devel] Re: [PATCH] efault - add data type to put_user()/get_user()
Date: Wed, 31 Oct 2007 16:43:51 -0600

This patch updates get_user() and put_user() to take a third argument of
data type.  get_user() and put_user() use target address which are
target_ulong and don't reflect the data type pointed to in target
memory.

Simply casting the target_ulong to a type before passing to
get/put_user() is poor because target_ulong isn't always a simple cast
to a host type (consider 32 bit on 64 bit where address are either
extended or truncate).  Also, simple casting of the argument to
get/put_user() results in several warnings when target and long pointer
sizes don't match.

This patch has additional updates to fix places where get/put_user() are
already used.

Attachment: 06_efault.patch.1.3
Description: Text Data


reply via email to

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