From: Avi Kivity <avi@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH 3/3] qemu-kvm: convert kvm_types to ISO
Date: Thu, 08 Oct 2009 15:18:15 +0200 [thread overview]
Message-ID: <4ACDE697.2070307@redhat.com> (raw)
In-Reply-To: <20091007111928.GD20835@redhat.com>
On 10/07/2009 01:19 PM, Michael S. Tsirkin wrote:
> Convert kvm-types to use ISO C types so that
> it can be included independently of other headers.
> This is on top of header patch set I sent previously.
>
>
Applied first two, but these headers are completely unnecessary for
userspace, so I removed them instead.
> diff --git a/kvm/include/linux/kvm_types.h b/kvm/include/linux/kvm_types.h
> index c65f89e..5c0b739 100644
> --- a/kvm/include/linux/kvm_types.h
> +++ b/kvm/include/linux/kvm_types.h
> @@ -70,41 +70,41 @@
> * hfn - host frame number
> */
>
> -typedef unsigned long gva_t;
> -typedef u64 gpa_t;
> -typedef unsigned long gfn_t;
> +typedef unsigned long gva_t;
> +typedef unsigned long long gpa_t;
> +typedef unsigned long gfn_t;
>
> -typedef unsigned long hva_t;
> -typedef u64 hpa_t;
> -typedef unsigned long hfn_t;
> +typedef unsigned long hva_t;
> +typedef unsigned long long hpa_t;
> +typedef unsigned long hfn_t;
>
> typedef hfn_t pfn_t;
>
> union kvm_ioapic_redirect_entry {
> - u64 bits;
> + unsigned long long bits;
> struct {
> - u8 vector;
> - u8 delivery_mode:3;
> - u8 dest_mode:1;
> - u8 delivery_status:1;
> - u8 polarity:1;
> - u8 remote_irr:1;
> - u8 trig_mode:1;
> - u8 mask:1;
> - u8 reserve:7;
> - u8 reserved[4];
> - u8 dest_id;
> + unsigned char vector;
> + unsigned char delivery_mode:3;
> + unsigned char dest_mode:1;
> + unsigned char delivery_status:1;
> + unsigned char polarity:1;
> + unsigned char remote_irr:1;
> + unsigned char trig_mode:1;
> + unsigned char mask:1;
> + unsigned char reserve:7;
> + unsigned char reserved[4];
> + unsigned char dest_id;
> } fields;
> };
>
> struct kvm_lapic_irq {
> - u32 vector;
> - u32 delivery_mode;
> - u32 dest_mode;
> - u32 level;
> - u32 trig_mode;
> - u32 shorthand;
> - u32 dest_id;
> + unsigned vector;
> + unsigned delivery_mode;
> + unsigned dest_mode;
> + unsigned level;
> + unsigned trig_mode;
> + unsigned shorthand;
> + unsigned dest_id;
> };
>
> #endif /* __KVM_TYPES_H__ */
>
--
error compiling committee.c: too many arguments to function
prev parent reply other threads:[~2009-10-08 13:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1254914295.git.mst@redhat.com>
2009-10-07 11:19 ` [PATCH 1/3] qemu-kvm: fix build with KVM_CAP_SET_GUEST_DEBUG Michael S. Tsirkin
2009-10-07 12:16 ` Jan Kiszka
2009-10-07 12:18 ` Michael S. Tsirkin
2009-10-07 12:23 ` Jan Kiszka
2009-10-07 11:19 ` [PATCH 2/3] qemu-kvm: fix build on 32 bit Michael S. Tsirkin
2009-10-07 11:19 ` [PATCH 3/3] qemu-kvm: convert kvm_types to ISO Michael S. Tsirkin
2009-10-08 13:18 ` Avi Kivity [this message]
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=4ACDE697.2070307@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mst@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).