grant tables and HVM+PV
This changeset:
changeset: 15606:17820aa1b2c0 user: Keir Fraser <[email protected]> date: Fri Dec 14 11:58:37 2007 +0000 summary: hvm: Remove duplicate assignment of __HYPERVISOR_grant_table_op in
Has broken our HVM PV drivers. Previously we were using:
520 if ((HYPERVISOR_grant_table_op(GNTTABOP_setup_table, pset, 1) != 0) ||
521 (pset->status != 0)) {
even on HVM. Now, this isn't actually necessary (stuff works fine with the call nop'd out, presumably due to the auto-sizing), but I wonder why the only grant op allowed is _query_size? IE what's the status of grant table code on HVM/PV? Is it just disabled because no compat audit has been done, or what?
regards
john
Quoted 11 lines · John Levon
Has broken our HVM PV drivers. Previously we were using:
520 if ((
HYPERVISOR_grant_table_op(GNTTABOP_setup_table, pset, 1)!=
0) ||
521 (pset->status!= 0)) {even on HVM. Now, this isn't actually necessary (stuff works fine with the call nop'd out, presumably due to the auto-sizing), but I wonder why the only grant op allowed is
_query_size? IE what's the status of grant table code on HVM/PV? Is it just disabled because no compat audit has been done, or what?
Most of the mapping calls wouldn't work at all. Query_size() could probably be simply given a stub implementation for HVM that returns all is good.
-- Keir
Quoted 6 lines · Keir Fraser
Quoted 6 lines
Has broken our HVM PV drivers. Previously we were using:
520 if ((
HYPERVISOR_grant_table_op(GNTTABOP_setup_table, pset, 1)!=
0) ||
521 (pset->status!= 0)) {
Quoted 7 lines
Quoted 5 lines
even on HVM. Now, this isn't actually necessary (stuff works fine with the call nop'd out, presumably due to the auto-sizing), but I wonder why the only grant op allowed is
_query_size? IE what's the status of grant table code on HVM/PV? Is it just disabled because no compat audit has been done, or what?Most of the mapping calls wouldn't work at all.
OK. I think we were effectively ending up with a call that did nothing but did it quietly and now we're getting back (the correct) ENOSYS. Clearly our bug but it wasn't quite obvious what was supposed to work.
Quoted 2 lines
Query_size()could probably be simply given a stub implementation for HVM that returns all is good.
It already is, I think?
regards
john
Quoted 10 lines · John Levon
Quoted 1 line
Most of the mapping calls wouldn't work at all.
OK. I think we were effectively ending up with a call that did nothing but did it quietly and now we're getting back (the correct) ENOSYS. Clearly our bug but it wasn't quite obvious what was supposed to work.
Quoted 2 lines
Query_size()could probably be simply given a stub implementation for HVM that returns all is good.It already is, I think?
Sorry, typo. I meant setup_table(). And actually I think we can just let that one through just as we already do for query_size().
I'll make that fix and put it in the 3.2 and 3.1 branches.
-- Keir
Quoted 7 lines · Keir Fraser
Quoted 4 lines
Quoted 2 lines
Query_size()could probably be simply given a stub implementation for HVM that returns all is good.It already is, I think?
Sorry, typo. I meant
setup_table(). And actually I think we can just let that one through just as we already do forquery_size().
I've confirmed this fixes the problem (via the 3.1 staging tree)
thanks
john