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
e0da2481
Commit
e0da2481
authored
Mar 15, 2011
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'stable/backends' of
git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen
parents
5f86cad1
2e820f58
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
drivers/xen/events.c
drivers/xen/events.c
+38
-0
include/xen/events.h
include/xen/events.h
+6
-0
No files found.
drivers/xen/events.c
View file @
e0da2481
...
...
@@ -864,6 +864,21 @@ static int bind_ipi_to_irq(unsigned int ipi, unsigned int cpu)
return
irq
;
}
static
int
bind_interdomain_evtchn_to_irq
(
unsigned
int
remote_domain
,
unsigned
int
remote_port
)
{
struct
evtchn_bind_interdomain
bind_interdomain
;
int
err
;
bind_interdomain
.
remote_dom
=
remote_domain
;
bind_interdomain
.
remote_port
=
remote_port
;
err
=
HYPERVISOR_event_channel_op
(
EVTCHNOP_bind_interdomain
,
&
bind_interdomain
);
return
err
?
:
bind_evtchn_to_irq
(
bind_interdomain
.
local_port
);
}
int
bind_virq_to_irq
(
unsigned
int
virq
,
unsigned
int
cpu
)
{
...
...
@@ -959,6 +974,29 @@ int bind_evtchn_to_irqhandler(unsigned int evtchn,
}
EXPORT_SYMBOL_GPL
(
bind_evtchn_to_irqhandler
);
int
bind_interdomain_evtchn_to_irqhandler
(
unsigned
int
remote_domain
,
unsigned
int
remote_port
,
irq_handler_t
handler
,
unsigned
long
irqflags
,
const
char
*
devname
,
void
*
dev_id
)
{
int
irq
,
retval
;
irq
=
bind_interdomain_evtchn_to_irq
(
remote_domain
,
remote_port
);
if
(
irq
<
0
)
return
irq
;
retval
=
request_irq
(
irq
,
handler
,
irqflags
,
devname
,
dev_id
);
if
(
retval
!=
0
)
{
unbind_from_irq
(
irq
);
return
retval
;
}
return
irq
;
}
EXPORT_SYMBOL_GPL
(
bind_interdomain_evtchn_to_irqhandler
);
int
bind_virq_to_irqhandler
(
unsigned
int
virq
,
unsigned
int
cpu
,
irq_handler_t
handler
,
unsigned
long
irqflags
,
const
char
*
devname
,
void
*
dev_id
)
...
...
include/xen/events.h
View file @
e0da2481
...
...
@@ -23,6 +23,12 @@ int bind_ipi_to_irqhandler(enum ipi_vector ipi,
unsigned
long
irqflags
,
const
char
*
devname
,
void
*
dev_id
);
int
bind_interdomain_evtchn_to_irqhandler
(
unsigned
int
remote_domain
,
unsigned
int
remote_port
,
irq_handler_t
handler
,
unsigned
long
irqflags
,
const
char
*
devname
,
void
*
dev_id
);
/*
* Common unbind function for all event sources. Takes IRQ to unbind from.
...
...
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