Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e9cbde8c
Commit
e9cbde8c
authored
Jul 06, 2009
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: ia64: fix build failures due to ia64/unsigned long mismatches
Signed-off-by:
Avi Kivity
<
avi@redhat.com
>
parent
c428dcc9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
11 deletions
+14
-11
arch/ia64/kvm/mmio.c
arch/ia64/kvm/mmio.c
+4
-2
arch/ia64/kvm/vcpu.c
arch/ia64/kvm/vcpu.c
+3
-3
arch/ia64/kvm/vcpu.h
arch/ia64/kvm/vcpu.h
+7
-6
No files found.
arch/ia64/kvm/mmio.c
View file @
e9cbde8c
...
...
@@ -247,7 +247,8 @@ void emulate_io_inst(struct kvm_vcpu *vcpu, u64 padr, u64 ma)
vcpu_get_fpreg
(
vcpu
,
inst
.
M9
.
f2
,
&
v
);
/* Write high word. FIXME: this is a kludge! */
v
.
u
.
bits
[
1
]
&=
0x3ffff
;
mmio_access
(
vcpu
,
padr
+
8
,
&
v
.
u
.
bits
[
1
],
8
,
ma
,
IOREQ_WRITE
);
mmio_access
(
vcpu
,
padr
+
8
,
(
u64
*
)
&
v
.
u
.
bits
[
1
],
8
,
ma
,
IOREQ_WRITE
);
data
=
v
.
u
.
bits
[
0
];
size
=
3
;
}
else
if
(
inst
.
M10
.
major
==
7
&&
inst
.
M10
.
x6
==
0x3B
)
{
...
...
@@ -265,7 +266,8 @@ void emulate_io_inst(struct kvm_vcpu *vcpu, u64 padr, u64 ma)
/* Write high word.FIXME: this is a kludge! */
v
.
u
.
bits
[
1
]
&=
0x3ffff
;
mmio_access
(
vcpu
,
padr
+
8
,
&
v
.
u
.
bits
[
1
],
8
,
ma
,
IOREQ_WRITE
);
mmio_access
(
vcpu
,
padr
+
8
,
(
u64
*
)
&
v
.
u
.
bits
[
1
],
8
,
ma
,
IOREQ_WRITE
);
data
=
v
.
u
.
bits
[
0
];
size
=
3
;
}
else
if
(
inst
.
M10
.
major
==
7
&&
inst
.
M10
.
x6
==
0x31
)
{
...
...
arch/ia64/kvm/vcpu.c
View file @
e9cbde8c
...
...
@@ -461,7 +461,7 @@ void setreg(unsigned long regnum, unsigned long val,
u64
vcpu_get_gr
(
struct
kvm_vcpu
*
vcpu
,
unsigned
long
reg
)
{
struct
kvm_pt_regs
*
regs
=
vcpu_regs
(
vcpu
);
u
64
val
;
u
nsigned
long
val
;
if
(
!
reg
)
return
0
;
...
...
@@ -469,7 +469,7 @@ u64 vcpu_get_gr(struct kvm_vcpu *vcpu, unsigned long reg)
return
val
;
}
void
vcpu_set_gr
(
struct
kvm_vcpu
*
vcpu
,
u
64
reg
,
u64
value
,
int
nat
)
void
vcpu_set_gr
(
struct
kvm_vcpu
*
vcpu
,
u
nsigned
long
reg
,
u64
value
,
int
nat
)
{
struct
kvm_pt_regs
*
regs
=
vcpu_regs
(
vcpu
);
long
sof
=
(
regs
->
cr_ifs
)
&
0x7f
;
...
...
@@ -1072,7 +1072,7 @@ void kvm_ttag(struct kvm_vcpu *vcpu, INST64 inst)
vcpu_set_gr
(
vcpu
,
inst
.
M46
.
r1
,
tag
,
0
);
}
int
vcpu_tpa
(
struct
kvm_vcpu
*
vcpu
,
u64
vadr
,
u
64
*
padr
)
int
vcpu_tpa
(
struct
kvm_vcpu
*
vcpu
,
u64
vadr
,
u
nsigned
long
*
padr
)
{
struct
thash_data
*
data
;
union
ia64_isr
visr
,
pt_isr
;
...
...
arch/ia64/kvm/vcpu.h
View file @
e9cbde8c
...
...
@@ -686,14 +686,15 @@ static inline int highest_inservice_irq(struct kvm_vcpu *vcpu)
return
highest_bits
((
int
*
)
&
(
VMX
(
vcpu
,
insvc
[
0
])));
}
extern
void
vcpu_get_fpreg
(
struct
kvm_vcpu
*
vcpu
,
u
64
reg
,
extern
void
vcpu_get_fpreg
(
struct
kvm_vcpu
*
vcpu
,
u
nsigned
long
reg
,
struct
ia64_fpreg
*
val
);
extern
void
vcpu_set_fpreg
(
struct
kvm_vcpu
*
vcpu
,
u
64
reg
,
extern
void
vcpu_set_fpreg
(
struct
kvm_vcpu
*
vcpu
,
u
nsigned
long
reg
,
struct
ia64_fpreg
*
val
);
extern
u64
vcpu_get_gr
(
struct
kvm_vcpu
*
vcpu
,
u64
reg
);
extern
void
vcpu_set_gr
(
struct
kvm_vcpu
*
vcpu
,
u64
reg
,
u64
val
,
int
nat
);
extern
u64
vcpu_get_psr
(
struct
kvm_vcpu
*
vcpu
);
extern
void
vcpu_set_psr
(
struct
kvm_vcpu
*
vcpu
,
u64
val
);
extern
u64
vcpu_get_gr
(
struct
kvm_vcpu
*
vcpu
,
unsigned
long
reg
);
extern
void
vcpu_set_gr
(
struct
kvm_vcpu
*
vcpu
,
unsigned
long
reg
,
u64
val
,
int
nat
);
extern
unsigned
long
vcpu_get_psr
(
struct
kvm_vcpu
*
vcpu
);
extern
void
vcpu_set_psr
(
struct
kvm_vcpu
*
vcpu
,
unsigned
long
val
);
extern
u64
vcpu_thash
(
struct
kvm_vcpu
*
vcpu
,
u64
vadr
);
extern
void
vcpu_bsw0
(
struct
kvm_vcpu
*
vcpu
);
extern
void
thash_vhpt_insert
(
struct
kvm_vcpu
*
v
,
u64
pte
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment